home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIEmbeddingPanels.xh < prev    next >
Text File  |  1996-05-01  |  76KB  |  2,467 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIEmbeddingPanels.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIEmbeddingPanel_xh
  11. #define SOM_HIEmbeddingPanel_xh
  12.  
  13. class HIEmbeddingPanel;
  14.  
  15. #define HIEmbeddingPanel_MajorVersion 0
  16. #define HIEmbeddingPanel_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <HIEmbeddingPanelTypes.h>
  22.  
  23. /* C++ SOM defs */
  24. #include <somcls.xh>
  25. #include <somcm.xh>
  26.  
  27. /* C++ parent defs */
  28. #ifndef SOM_HIPanel_xh
  29. #include <HIPanels.xh>
  30. #endif
  31.  
  32. #ifndef HIEmbeddingPanel_API
  33. #define HIEmbeddingPanel_API
  34. /*
  35.  * -- The Class API
  36.  */
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. class SOMClass;
  42. class SOMObject;
  43. class HIWindow;
  44. class HIEmbeddingPanel;
  45.  
  46. /*
  47.  * End of user-defined types.
  48.  */
  49.  
  50. #ifdef OLDIBMSOMAPISUPPORT
  51. #define HIEmbeddingPanelCClassData HIEmbeddingPanelClassData
  52. #define HIEmbeddingPanelNewClass(major,minor) somNewVersionedClassReference(HIEmbeddingPanel,major,minor)
  53. #endif
  54.  
  55. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  56. #define HIEmbeddingPanelMetaClass SOMClass
  57.  
  58. #if PRAGMA_ALIGN_SUPPORTED
  59. #  pragma options align=power
  60. #endif
  61.  
  62. /* The API to the HIEmbeddingPanel class object, and the methods it introduces. */
  63. SOMEXTERN struct HIEmbeddingPanelClassDataStructure {
  64. #ifdef OLDIBMSOMAPISUPPORT
  65.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  66. #else
  67.     long zero;
  68. #endif
  69.     somStaticClassInfo *sci;
  70.     somDToken        instanceDataToken;
  71.     long reserved [3];
  72.     somMToken GetSubPanelCount;
  73.     somMToken GetUserInputFocusSubPanel;
  74.     somMToken GetLastSelectedSubPanel;
  75.     somMToken InitEmbeddingPanel;
  76.     somMToken AddSubPanel;
  77.     somMToken RemoveSubPanel;
  78.     somMToken GetSubPanel;
  79.     somMToken SetUserInputFocusSubPanel;
  80.     somMToken GetSubPanelIndex;
  81.     somMToken GetSubPanelsFromRefLabel;
  82. } SOMDLINK HIEmbeddingPanelClassData;
  83.  
  84. #if PRAGMA_ALIGN_SUPPORTED
  85. #  pragma options align=reset
  86. #endif
  87.  
  88. #if !defined(HIEmbeddingPanel_Class_Source) && !defined(SOM_Module_hiembeddingpanels_Source)
  89. #if PRAGMA_IMPORT_SUPPORTED
  90. #pragma import list HIEmbeddingPanelClassData
  91. #endif
  92. #endif
  93.  
  94.  
  95. /*
  96.  * -- Typedefs for HIEmbeddingPanel Method Procedures
  97.  */
  98. SOMEXTERN {
  99. typedef ItemCount   (* SOMLINK somTD_HIEmbeddingPanel_GetSubPanelCount)(HIEmbeddingPanel *somSelf, Environment *ev);
  100. typedef HIPanel*   (* SOMLINK somTD_HIEmbeddingPanel_GetLastSelectedSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev);
  101. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_InitEmbeddingPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  102.         RefLabel* identifier,
  103.         HIWindow* window,
  104.         Rect* bounds);
  105. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_AddSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  106.         HIPanel* subPanel,
  107.         HISubPanelIndex where,
  108.         HIAdoptionFlags adoptionFlags,
  109.         HIFrameBindingFlags frameBindingFlags);
  110. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_RemoveSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  111.         HIPanel* subPanel);
  112. typedef HIPanel*   (* SOMLINK somTD_HIEmbeddingPanel_GetSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  113.         HISubPanelIndex subPanelIndex);
  114. typedef HIPanel*   (* SOMLINK somTD_HIEmbeddingPanel_GetUserInputFocusSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev);
  115. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_SetUserInputFocusSubPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  116.         HIPanel* subPanel);
  117. typedef HISubPanelIndex   (* SOMLINK somTD_HIEmbeddingPanel_GetSubPanelIndex)(HIEmbeddingPanel *somSelf, Environment *ev,
  118.         HIPanel* subPanel);
  119. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_GetSubPanelsFromRefLabel)(HIEmbeddingPanel *somSelf, Environment *ev,
  120.         RefLabel* identifier,
  121.         boolean deep,
  122.         ItemCount requestedSubPanels,
  123.         ItemCount* totalSubPanels,
  124.         HIPanel** thePanels);
  125.  
  126. /*
  127.  * -- Typedefs for Inherited Methods
  128.  */
  129. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIEmbeddingPanel_GetEmbeddingParent)(HIEmbeddingPanel *somSelf, Environment *ev);
  130. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_InitPanel)(HIEmbeddingPanel *somSelf, Environment *ev,
  131.         RefLabel* identifier,
  132.         HIWindow* window,
  133.         Rect* bounds);
  134. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_RegisterInterestInAppleEvent)(HIEmbeddingPanel *somSelf, Environment *ev,
  135.         AEHandlerTableRef table,
  136.         AEEventClass eventClass,
  137.         AEEventID eventID,
  138.         HIEventRoutingType eventRouting);
  139. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_HasValidContent)(HIEmbeddingPanel *somSelf, Environment *ev);
  140. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_GetDeepCollectionItemData)(HIEmbeddingPanel *somSelf, Environment *ev,
  141.         CollectionTag tag,
  142.         SInt32 id,
  143.         ByteCount sizeAllowed,
  144.         ByteCount* sizeReturned,
  145.         void* itemData);
  146. typedef HIWindow*   (* SOMLINK somTD_HIEmbeddingPanel_GetWindow)(HIEmbeddingPanel *somSelf, Environment *ev);
  147. typedef CGrafPtr   (* SOMLINK somTD_HIEmbeddingPanel_GetPort)(HIEmbeddingPanel *somSelf, Environment *ev);
  148. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_GetRefLabel)(HIEmbeddingPanel *somSelf, Environment *ev,
  149.         RefLabel* identifier);
  150. typedef Collection   (* SOMLINK somTD_HIEmbeddingPanel_GetCollection)(HIEmbeddingPanel *somSelf, Environment *ev);
  151. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_Init)(HIEmbeddingPanel *somSelf, Environment *ev,
  152.         RefLabel* identifier,
  153.         Rect* boundingRect);
  154. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Terminate)(HIEmbeddingPanel *somSelf, Environment *ev);
  155. typedef HIObject*   (* SOMLINK somTD_HIEmbeddingPanel_Clone)(HIEmbeddingPanel *somSelf, Environment *ev);
  156. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Release)(HIEmbeddingPanel *somSelf, Environment *ev);
  157. typedef ItemCount   (* SOMLINK somTD_HIEmbeddingPanel_GetOwnerCount)(HIEmbeddingPanel *somSelf, Environment *ev);
  158. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_InitFromAERecord)(HIEmbeddingPanel *somSelf, Environment *ev,
  159.         AESubDesc* baseInitializerData,
  160.         AESubDesc* initializerDataForClass,
  161.         HIAERecordDataFormat dataFormat);
  162. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_WriteToAERecord)(HIEmbeddingPanel *somSelf, Environment *ev,
  163.         AERecord* dataForSubclass,
  164.         AERecord* objectData,
  165.         HIAERecordDataFormat dataFormat);
  166. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_CalculateOptimalSize)(HIEmbeddingPanel *somSelf, Environment *ev,
  167.         SInt16* optimalWidth,
  168.         SInt16* optimalHeight);
  169. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_GetBoundingRect)(HIEmbeddingPanel *somSelf, Environment *ev,
  170.         HICoordinateSystem coordinate,
  171.         Rect* boundingRect);
  172. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_SetBoundingRect)(HIEmbeddingPanel *somSelf, Environment *ev,
  173.         HICoordinateSystem coordinate,
  174.         Rect* newBoundingRect);
  175. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_SetPosition)(HIEmbeddingPanel *somSelf, Environment *ev,
  176.         HICoordinateSystem coordinate,
  177.         Point* newPosition);
  178. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_SetSize)(HIEmbeddingPanel *somSelf, Environment *ev,
  179.         SInt16 width,
  180.         SInt16 height);
  181. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_GetUpdateRect)(HIEmbeddingPanel *somSelf, Environment *ev,
  182.         HICoordinateSystem coordinate,
  183.         Rect* updateRect);
  184. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Enable)(HIEmbeddingPanel *somSelf, Environment *ev);
  185. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Disable)(HIEmbeddingPanel *somSelf, Environment *ev);
  186. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_IsEnabled)(HIEmbeddingPanel *somSelf, Environment *ev);
  187. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Show)(HIEmbeddingPanel *somSelf, Environment *ev);
  188. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Hide)(HIEmbeddingPanel *somSelf, Environment *ev);
  189. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_IsVisible)(HIEmbeddingPanel *somSelf, Environment *ev);
  190. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_HandleAppleEvent)(HIEmbeddingPanel *somSelf, Environment *ev,
  191.         AEEventClass eventClass,
  192.         AEEventID eventID,
  193.         AppleEvent* theEvent,
  194.         AppleEvent* reply,
  195.         AEHandlerTableRef handlerTableRef);
  196. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_HandleActivate)(HIEmbeddingPanel *somSelf, Environment *ev,
  197.         AppleEvent* theEvent,
  198.         AppleEvent* reply,
  199.         AEHandlerTableRef handlerTableRef);
  200. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_HandleDeactivate)(HIEmbeddingPanel *somSelf, Environment *ev,
  201.         AppleEvent* theEvent,
  202.         AppleEvent* reply,
  203.         AEHandlerTableRef handlerTableRef);
  204. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_HandleNavigation)(HIEmbeddingPanel *somSelf, Environment *ev,
  205.         SInt8 key,
  206.         SInt8 keyCode,
  207.         EventModifiers modifiers,
  208.         AppleEvent* theEvent,
  209.         AppleEvent* reply,
  210.         AEHandlerTableRef handlerTableRef);
  211. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_HandleMouseDownInContent)(HIEmbeddingPanel *somSelf, Environment *ev,
  212.         Point* portLocalWhere,
  213.         EventModifiers modifiers,
  214.         AppleEvent* theEvent,
  215.         AppleEvent* reply,
  216.         AEHandlerTableRef handlerTableRef);
  217. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_HandleMouseMovedInContent)(HIEmbeddingPanel *somSelf, Environment *ev,
  218.         Point* portLocalWhere,
  219.         EventModifiers modifiers,
  220.         AppleEvent* theEvent,
  221.         AppleEvent* reply,
  222.         AEHandlerTableRef handlerTableRef);
  223. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_HandleMouseStoppedMovingInContent)(HIEmbeddingPanel *somSelf, Environment *ev,
  224.         Point* portLocalWhere,
  225.         EventModifiers modifiers,
  226.         AppleEvent* theEvent,
  227.         AppleEvent* reply,
  228.         AEHandlerTableRef handlerTableRef);
  229. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_HandleMouseUpInContent)(HIEmbeddingPanel *somSelf, Environment *ev,
  230.         Point* portLocalWhere,
  231.         EventModifiers modifiers,
  232.         AppleEvent* theEvent,
  233.         AppleEvent* reply,
  234.         AEHandlerTableRef handlerTableRef);
  235. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_TakeUserInputFocus)(HIEmbeddingPanel *somSelf, Environment *ev);
  236. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_ReleaseUserInputFocus)(HIEmbeddingPanel *somSelf, Environment *ev);
  237. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_HasUserInputFocus)(HIEmbeddingPanel *somSelf, Environment *ev);
  238. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_CanReleaseUserInputFocus)(HIEmbeddingPanel *somSelf, Environment *ev);
  239. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_SetUserInputFocusFlags)(HIEmbeddingPanel *somSelf, Environment *ev,
  240.         HIUserInputFocusFlags flags);
  241. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIEmbeddingPanel_GetUserInputFocusFlags)(HIEmbeddingPanel *somSelf, Environment *ev);
  242. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_SetTitle)(HIEmbeddingPanel *somSelf, Environment *ev,
  243.         ConstHIImageRef title,
  244.         HIAdoptionFlags disposalAdoptionFlags);
  245. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_GetTitle)(HIEmbeddingPanel *somSelf, Environment *ev,
  246.         HIImageRef* title);
  247. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Draw)(HIEmbeddingPanel *somSelf, Environment *ev,
  248.         CGrafPtr whichPort,
  249.         RgnHandle drawRgn);
  250. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Erase)(HIEmbeddingPanel *somSelf, Environment *ev,
  251.         CGrafPtr whichPort,
  252.         RgnHandle eraseRgn);
  253. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Invalidate)(HIEmbeddingPanel *somSelf, Environment *ev);
  254. typedef HIDrawingMode   (* SOMLINK somTD_HIEmbeddingPanel_GetDrawingMode)(HIEmbeddingPanel *somSelf, Environment *ev);
  255. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_SetDrawingMode)(HIEmbeddingPanel *somSelf, Environment *ev,
  256.         HIDrawingMode drawingMode);
  257. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_SetBackgroundPattern)(HIEmbeddingPanel *somSelf, Environment *ev,
  258.         PixPatHandle backgroundPattern);
  259. typedef PixPatHandle   (* SOMLINK somTD_HIEmbeddingPanel_GetBackgroundPattern)(HIEmbeddingPanel *somSelf, Environment *ev);
  260. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Cut)(HIEmbeddingPanel *somSelf, Environment *ev);
  261. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Copy)(HIEmbeddingPanel *somSelf, Environment *ev);
  262. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Paste)(HIEmbeddingPanel *somSelf, Environment *ev);
  263. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_Clear)(HIEmbeddingPanel *somSelf, Environment *ev);
  264. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIEmbeddingPanel_GetClipboardSupportFlags)(HIEmbeddingPanel *somSelf, Environment *ev);
  265. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_AddStateChangeCallback)(HIEmbeddingPanel *somSelf, Environment *ev,
  266.         HIStateChangeCallbackProcPtr changedStateCallback,
  267.         HIStateChangeCallbackRef* newCallbackRef);
  268. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_RemoveStateChangeCallback)(HIEmbeddingPanel *somSelf, Environment *ev,
  269.         HIStateChangeCallbackRef callbackRefToRemove);
  270. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_GetHIObjectFromRefLabel)(Environment *ev,
  271.         RefLabel* identifier,
  272.         ItemCount requestedObjects,
  273.         ItemCount* totalObjects,
  274.         HIObject** theObjects);
  275. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_GetNewHIObject)(Environment *ev,
  276.         AESubDesc* objectInitializer,
  277.         HIObject** newObject);
  278. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_GetNewHIObjectFromResource)(Environment *ev,
  279.         ResID objectInitializerResourceID,
  280.         HIObject** newObject);
  281. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_DrawContent)(HIEmbeddingPanel *somSelf, Environment *ev,
  282.         CGrafPtr whichPort,
  283.         RgnHandle drawRgn);
  284. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_EraseContent)(HIEmbeddingPanel *somSelf, Environment *ev,
  285.         CGrafPtr whichPort,
  286.         RgnHandle regionToErase);
  287. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_TranslatePoint)(HIEmbeddingPanel *somSelf, Environment *ev,
  288.         HICoordinateSystem translateFrom,
  289.         HICoordinateSystem translateTo,
  290.         Point* sourcePoint,
  291.         Point* translatedPoint);
  292. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_TranslateRect)(HIEmbeddingPanel *somSelf, Environment *ev,
  293.         HICoordinateSystem translateFrom,
  294.         HICoordinateSystem translateTo,
  295.         Rect* sourceRect,
  296.         Rect* translatedRect);
  297. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_StateChanged)(HIEmbeddingPanel *somSelf, Environment *ev,
  298.         HIStateChangeCodeCreator selectorCreator,
  299.         HIStateChangeCode changedCode);
  300. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_SetClipboardSupportFlags)(HIEmbeddingPanel *somSelf, Environment *ev,
  301.         HIClipboardSupportFlags flags);
  302. typedef OSStatus   (* SOMLINK somTD_HIEmbeddingPanel_Verify)(HIEmbeddingPanel *somSelf, Environment *ev);
  303. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_somInit)(HIEmbeddingPanel *somSelf);
  304. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_somUninit)(HIEmbeddingPanel *somSelf);
  305. typedef SOMObject*   (* SOMLINK somTD_HIEmbeddingPanel_somDuplicateReference)(HIEmbeddingPanel *somSelf);
  306. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_somCompareReference)(HIEmbeddingPanel *somSelf,
  307.         SOMObject* anObject);
  308. typedef SOMObject*   (* SOMLINK somTD_HIEmbeddingPanel_somRelease)(HIEmbeddingPanel *somSelf);
  309. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_somFree)(HIEmbeddingPanel *somSelf);
  310. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_somCanDelete)(HIEmbeddingPanel *somSelf);
  311. typedef SOMClass*   (* SOMLINK somTD_HIEmbeddingPanel_somGetClass)(HIEmbeddingPanel *somSelf);
  312. typedef corbastring   (* SOMLINK somTD_HIEmbeddingPanel_somGetClassName)(HIEmbeddingPanel *somSelf);
  313. typedef long   (* SOMLINK somTD_HIEmbeddingPanel_somGetSize)(HIEmbeddingPanel *somSelf);
  314. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_somIsA)(HIEmbeddingPanel *somSelf,
  315.         SOMClass* aClassObj);
  316. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_somRespondsTo)(HIEmbeddingPanel *somSelf,
  317.         somId mId);
  318. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_somIsInstanceOf)(HIEmbeddingPanel *somSelf,
  319.         SOMClass* aClassObj);
  320. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_somDispatch)(HIEmbeddingPanel *somSelf,
  321.         somToken* retValue,
  322.         somId methodId,
  323.         va_list ap);
  324. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_somClassDispatch)(HIEmbeddingPanel *somSelf,
  325.         SOMClass* clsObj,
  326.         somToken* retValue,
  327.         somId methodId,
  328.         va_list ap);
  329. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_somCastObj)(HIEmbeddingPanel *somSelf,
  330.         SOMClass* cls);
  331. typedef boolean   (* SOMLINK somTD_HIEmbeddingPanel_somResetObj)(HIEmbeddingPanel *somSelf);
  332. typedef SOMObject*   (* SOMLINK somTD_HIEmbeddingPanel_somPrintSelf)(HIEmbeddingPanel *somSelf);
  333. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_somDumpSelf)(HIEmbeddingPanel *somSelf,
  334.         long level);
  335. typedef void   (* SOMLINK somTD_HIEmbeddingPanel_somDumpSelfInt)(HIEmbeddingPanel *somSelf,
  336.         long level);
  337. }
  338.  
  339. #endif /* HIEmbeddingPanel_API */
  340.  
  341.  
  342. /*
  343.  * -- This emitter treats Method Tokens as Thunks by default.
  344.  * -- Use the sc modifier "nothunks" to change this default
  345.  */
  346. #undef somresolve_
  347. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  348.  
  349. /*
  350.  * -- The C++ Wrapper Class for HIEmbeddingPanel
  351.  */
  352. class HIEmbeddingPanel : public HIPanel
  353. {
  354. public:
  355.  
  356. // HIEmbeddingPanel::new registers use of the class object, and then uses somNew
  357. // to allocate memory and load the object method table pointer. 
  358. void *operator new(size_t size)
  359. {
  360.     SOM_IgnoreWarning(size);
  361.     // Allocate memory using the default allocator for HIEmbeddingPanel, and
  362.     // clear mem & set method table pointer, call basic initialization
  363.     return (void*) somNewObject(HIEmbeddingPanel);
  364. }
  365.  
  366. // HIEmbeddingPanel::delete uses the default deallocator for the object's class.
  367. void operator delete(void * obj)
  368. {
  369.     if (obj) {
  370.         SOM_Resolve(obj,SOMObject,somFree)
  371.            ( (SOMObject*) obj );
  372.     }
  373. }
  374.  
  375. /* method: GetSubPanelCount */
  376. ItemCount   GetSubPanelCount(Environment *ev)
  377. {
  378.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,GetSubPanelCount)
  379.     (this,ev);
  380. }
  381.  
  382. /* method: GetLastSelectedSubPanel */
  383. HIPanel*   GetLastSelectedSubPanel(Environment *ev)
  384. {
  385.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,GetLastSelectedSubPanel)
  386.     (this,ev);
  387. }
  388.  
  389. /* method: InitEmbeddingPanel */
  390. OSStatus   InitEmbeddingPanel(Environment *ev,
  391.         RefLabel* identifier,
  392.         HIWindow* window,
  393.         Rect* bounds)
  394. {
  395.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,InitEmbeddingPanel)
  396.     (this,ev,identifier,window,bounds);
  397. }
  398.  
  399. /* method: AddSubPanel */
  400. OSStatus   AddSubPanel(Environment *ev,
  401.         HIPanel* subPanel,
  402.         HISubPanelIndex where,
  403.         HIAdoptionFlags adoptionFlags,
  404.         HIFrameBindingFlags frameBindingFlags)
  405. {
  406.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,AddSubPanel)
  407.     (this,ev,subPanel,where,adoptionFlags,frameBindingFlags);
  408. }
  409.  
  410. /* method: RemoveSubPanel */
  411. OSStatus   RemoveSubPanel(Environment *ev,
  412.         HIPanel* subPanel)
  413. {
  414.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,RemoveSubPanel)
  415.     (this,ev,subPanel);
  416. }
  417.  
  418. /* method: GetSubPanel */
  419. HIPanel*   GetSubPanel(Environment *ev,
  420.         HISubPanelIndex subPanelIndex)
  421. {
  422.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,GetSubPanel)
  423.     (this,ev,subPanelIndex);
  424. }
  425.  
  426. /* method: GetUserInputFocusSubPanel */
  427. HIPanel*   GetUserInputFocusSubPanel(Environment *ev)
  428. {
  429.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,GetUserInputFocusSubPanel)
  430.     (this,ev);
  431. }
  432.  
  433. /* method: SetUserInputFocusSubPanel */
  434. OSStatus   SetUserInputFocusSubPanel(Environment *ev,
  435.         HIPanel* subPanel)
  436. {
  437.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,SetUserInputFocusSubPanel)
  438.     (this,ev,subPanel);
  439. }
  440.  
  441. /* method: GetSubPanelIndex */
  442. HISubPanelIndex   GetSubPanelIndex(Environment *ev,
  443.         HIPanel* subPanel)
  444. {
  445.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,GetSubPanelIndex)
  446.     (this,ev,subPanel);
  447. }
  448.  
  449. /* method: GetSubPanelsFromRefLabel */
  450. OSStatus   GetSubPanelsFromRefLabel(Environment *ev,
  451.         RefLabel* identifier,
  452.         boolean deep,
  453.         ItemCount requestedSubPanels,
  454.         ItemCount* totalSubPanels,
  455.         HIPanel** thePanels)
  456. {
  457.    return SOM_ResolveD(this,HIEmbeddingPanel,HIEmbeddingPanel,GetSubPanelsFromRefLabel)
  458.     (this,ev,identifier,deep,requestedSubPanels,totalSubPanels,thePanels);
  459. }
  460.  
  461.  
  462. /*
  463.  * -- Inherited methods
  464.  */
  465. /* method: GetEmbeddingParent */
  466. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  467. {
  468.    return SOM_ResolveD(this,HIEmbeddingPanel,HIPanel,GetEmbeddingParent)
  469.     (this,ev);
  470. }
  471.  
  472. /* method: InitPanel */
  473. OSStatus   InitPanel(Environment *ev,
  474.         RefLabel* identifier,
  475.         HIWindow* window,
  476.         Rect* bounds)
  477. {
  478.    return SOM_ResolveD(this,HIEmbeddingPanel,HIPanel,InitPanel)
  479.     (this,ev,identifier,window,bounds);
  480. }
  481.  
  482. /* method: RegisterInterestInAppleEvent */
  483. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  484.         AEHandlerTableRef table,
  485.         AEEventClass eventClass,
  486.         AEEventID eventID,
  487.         HIEventRoutingType eventRouting)
  488. {
  489.    return SOM_ResolveD(this,HIEmbeddingPanel,HIPanel,RegisterInterestInAppleEvent)
  490.     (this,ev,table,eventClass,eventID,eventRouting);
  491. }
  492.  
  493. /* method: HasValidContent */
  494. boolean   HasValidContent(Environment *ev)
  495. {
  496.    return SOM_ResolveD(this,HIEmbeddingPanel,HIPanel,HasValidContent)
  497.     (this,ev);
  498. }
  499.  
  500. /* method: GetDeepCollectionItemData */
  501. OSStatus   GetDeepCollectionItemData(Environment *ev,
  502.         CollectionTag tag,
  503.         SInt32 id,
  504.         ByteCount sizeAllowed,
  505.         ByteCount* sizeReturned,
  506.         void* itemData)
  507. {
  508.    return SOM_ResolveD(this,HIEmbeddingPanel,HIPanel,GetDeepCollectionItemData)
  509.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  510. }
  511.  
  512. /* method: GetWindow */
  513. HIWindow*   GetWindow(Environment *ev)
  514. {
  515.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetWindow)
  516.     (this,ev);
  517. }
  518.  
  519. /* method: GetPort */
  520. CGrafPtr   GetPort(Environment *ev)
  521. {
  522.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetPort)
  523.     (this,ev);
  524. }
  525.  
  526. /* method: GetRefLabel */
  527. void   GetRefLabel(Environment *ev,
  528.         RefLabel* identifier)
  529. {
  530.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetRefLabel)
  531.     (this,ev,identifier);
  532. }
  533.  
  534. /* method: GetCollection */
  535. Collection   GetCollection(Environment *ev)
  536. {
  537.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetCollection)
  538.     (this,ev);
  539. }
  540.  
  541. /* method: Init */
  542. OSStatus   Init(Environment *ev,
  543.         RefLabel* identifier,
  544.         Rect* boundingRect)
  545. {
  546.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Init)
  547.     (this,ev,identifier,boundingRect);
  548. }
  549.  
  550. /* method: Terminate */
  551. void   Terminate(Environment *ev)
  552. {
  553.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Terminate)
  554.     (this,ev);
  555. }
  556.  
  557. /* method: Clone */
  558. HIObject*   Clone(Environment *ev)
  559. {
  560.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Clone)
  561.     (this,ev);
  562. }
  563.  
  564. /* method: Release */
  565. void   Release(Environment *ev)
  566. {
  567.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Release)
  568.     (this,ev);
  569. }
  570.  
  571. /* method: GetOwnerCount */
  572. ItemCount   GetOwnerCount(Environment *ev)
  573. {
  574.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetOwnerCount)
  575.     (this,ev);
  576. }
  577.  
  578. /* method: InitFromAERecord */
  579. OSStatus   InitFromAERecord(Environment *ev,
  580.         AESubDesc* baseInitializerData,
  581.         AESubDesc* initializerDataForClass,
  582.         HIAERecordDataFormat dataFormat)
  583. {
  584.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,InitFromAERecord)
  585.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  586. }
  587.  
  588. /* method: WriteToAERecord */
  589. OSStatus   WriteToAERecord(Environment *ev,
  590.         AERecord* dataForSubclass,
  591.         AERecord* objectData,
  592.         HIAERecordDataFormat dataFormat)
  593. {
  594.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,WriteToAERecord)
  595.     (this,ev,dataForSubclass,objectData,dataFormat);
  596. }
  597.  
  598. /* method: CalculateOptimalSize */
  599. void   CalculateOptimalSize(Environment *ev,
  600.         SInt16* optimalWidth,
  601.         SInt16* optimalHeight)
  602. {
  603.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,CalculateOptimalSize)
  604.     (this,ev,optimalWidth,optimalHeight);
  605. }
  606.  
  607. /* method: GetBoundingRect */
  608. void   GetBoundingRect(Environment *ev,
  609.         HICoordinateSystem coordinate,
  610.         Rect* boundingRect)
  611. {
  612.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetBoundingRect)
  613.     (this,ev,coordinate,boundingRect);
  614. }
  615.  
  616. /* method: SetBoundingRect */
  617. void   SetBoundingRect(Environment *ev,
  618.         HICoordinateSystem coordinate,
  619.         Rect* newBoundingRect)
  620. {
  621.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,SetBoundingRect)
  622.     (this,ev,coordinate,newBoundingRect);
  623. }
  624.  
  625. /* method: SetPosition */
  626. void   SetPosition(Environment *ev,
  627.         HICoordinateSystem coordinate,
  628.         Point* newPosition)
  629. {
  630.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,SetPosition)
  631.     (this,ev,coordinate,newPosition);
  632. }
  633.  
  634. /* method: SetSize */
  635. void   SetSize(Environment *ev,
  636.         SInt16 width,
  637.         SInt16 height)
  638. {
  639.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,SetSize)
  640.     (this,ev,width,height);
  641. }
  642.  
  643. /* method: GetUpdateRect */
  644. void   GetUpdateRect(Environment *ev,
  645.         HICoordinateSystem coordinate,
  646.         Rect* updateRect)
  647. {
  648.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetUpdateRect)
  649.     (this,ev,coordinate,updateRect);
  650. }
  651.  
  652. /* method: Enable */
  653. void   Enable(Environment *ev)
  654. {
  655.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Enable)
  656.     (this,ev);
  657. }
  658.  
  659. /* method: Disable */
  660. void   Disable(Environment *ev)
  661. {
  662.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Disable)
  663.     (this,ev);
  664. }
  665.  
  666. /* method: IsEnabled */
  667. boolean   IsEnabled(Environment *ev)
  668. {
  669.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,IsEnabled)
  670.     (this,ev);
  671. }
  672.  
  673. /* method: Show */
  674. void   Show(Environment *ev)
  675. {
  676.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Show)
  677.     (this,ev);
  678. }
  679.  
  680. /* method: Hide */
  681. void   Hide(Environment *ev)
  682. {
  683.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Hide)
  684.     (this,ev);
  685. }
  686.  
  687. /* method: IsVisible */
  688. boolean   IsVisible(Environment *ev)
  689. {
  690.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,IsVisible)
  691.     (this,ev);
  692. }
  693.  
  694. /* method: HandleAppleEvent */
  695. OSStatus   HandleAppleEvent(Environment *ev,
  696.         AEEventClass eventClass,
  697.         AEEventID eventID,
  698.         AppleEvent* theEvent,
  699.         AppleEvent* reply,
  700.         AEHandlerTableRef handlerTableRef)
  701. {
  702.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,HandleAppleEvent)
  703.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  704. }
  705.  
  706. /* method: HandleActivate */
  707. OSStatus   HandleActivate(Environment *ev,
  708.         AppleEvent* theEvent,
  709.         AppleEvent* reply,
  710.         AEHandlerTableRef handlerTableRef)
  711. {
  712.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,HandleActivate)
  713.     (this,ev,theEvent,reply,handlerTableRef);
  714. }
  715.  
  716. /* method: HandleDeactivate */
  717. OSStatus   HandleDeactivate(Environment *ev,
  718.         AppleEvent* theEvent,
  719.         AppleEvent* reply,
  720.         AEHandlerTableRef handlerTableRef)
  721. {
  722.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,HandleDeactivate)
  723.     (this,ev,theEvent,reply,handlerTableRef);
  724. }
  725.  
  726. /* method: HandleNavigation */
  727. OSStatus   HandleNavigation(Environment *ev,
  728.         SInt8 key,
  729.         SInt8 keyCode,
  730.         EventModifiers modifiers,
  731.         AppleEvent* theEvent,
  732.         AppleEvent* reply,
  733.         AEHandlerTableRef handlerTableRef)
  734. {
  735.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,HandleNavigation)
  736.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  737. }
  738.  
  739. /* method: HandleMouseDownInContent */
  740. OSStatus   HandleMouseDownInContent(Environment *ev,
  741.         Point* portLocalWhere,
  742.         EventModifiers modifiers,
  743.         AppleEvent* theEvent,
  744.         AppleEvent* reply,
  745.         AEHandlerTableRef handlerTableRef)
  746. {
  747.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,HandleMouseDownInContent)
  748.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  749. }
  750.  
  751. /* method: HandleMouseMovedInContent */
  752. OSStatus   HandleMouseMovedInContent(Environment *ev,
  753.         Point* portLocalWhere,
  754.         EventModifiers modifiers,
  755.         AppleEvent* theEvent,
  756.         AppleEvent* reply,
  757.         AEHandlerTableRef handlerTableRef)
  758. {
  759.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,HandleMouseMovedInContent)
  760.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  761. }
  762.  
  763. /* method: HandleMouseStoppedMovingInContent */
  764. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  765.         Point* portLocalWhere,
  766.         EventModifiers modifiers,
  767.         AppleEvent* theEvent,
  768.         AppleEvent* reply,
  769.         AEHandlerTableRef handlerTableRef)
  770. {
  771.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,HandleMouseStoppedMovingInContent)
  772.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  773. }
  774.  
  775. /* method: HandleMouseUpInContent */
  776. OSStatus   HandleMouseUpInContent(Environment *ev,
  777.         Point* portLocalWhere,
  778.         EventModifiers modifiers,
  779.         AppleEvent* theEvent,
  780.         AppleEvent* reply,
  781.         AEHandlerTableRef handlerTableRef)
  782. {
  783.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,HandleMouseUpInContent)
  784.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  785. }
  786.  
  787. /* method: TakeUserInputFocus */
  788. void   TakeUserInputFocus(Environment *ev)
  789. {
  790.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,TakeUserInputFocus)
  791.     (this,ev);
  792. }
  793.  
  794. /* method: ReleaseUserInputFocus */
  795. void   ReleaseUserInputFocus(Environment *ev)
  796. {
  797.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,ReleaseUserInputFocus)
  798.     (this,ev);
  799. }
  800.  
  801. /* method: HasUserInputFocus */
  802. boolean   HasUserInputFocus(Environment *ev)
  803. {
  804.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,HasUserInputFocus)
  805.     (this,ev);
  806. }
  807.  
  808. /* method: CanReleaseUserInputFocus */
  809. boolean   CanReleaseUserInputFocus(Environment *ev)
  810. {
  811.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,CanReleaseUserInputFocus)
  812.     (this,ev);
  813. }
  814.  
  815. /* method: SetUserInputFocusFlags */
  816. void   SetUserInputFocusFlags(Environment *ev,
  817.         HIUserInputFocusFlags flags)
  818. {
  819.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,SetUserInputFocusFlags)
  820.     (this,ev,flags);
  821. }
  822.  
  823. /* method: GetUserInputFocusFlags */
  824. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  825. {
  826.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetUserInputFocusFlags)
  827.     (this,ev);
  828. }
  829.  
  830. /* method: SetTitle */
  831. OSStatus   SetTitle(Environment *ev,
  832.         ConstHIImageRef title,
  833.         HIAdoptionFlags disposalAdoptionFlags)
  834. {
  835.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,SetTitle)
  836.     (this,ev,title,disposalAdoptionFlags);
  837. }
  838.  
  839. /* method: GetTitle */
  840. OSStatus   GetTitle(Environment *ev,
  841.         HIImageRef* title)
  842. {
  843.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetTitle)
  844.     (this,ev,title);
  845. }
  846.  
  847. /* method: Draw */
  848. void   Draw(Environment *ev,
  849.         CGrafPtr whichPort,
  850.         RgnHandle drawRgn)
  851. {
  852.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Draw)
  853.     (this,ev,whichPort,drawRgn);
  854. }
  855.  
  856. /* method: Erase */
  857. void   Erase(Environment *ev,
  858.         CGrafPtr whichPort,
  859.         RgnHandle eraseRgn)
  860. {
  861.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Erase)
  862.     (this,ev,whichPort,eraseRgn);
  863. }
  864.  
  865. /* method: Invalidate */
  866. void   Invalidate(Environment *ev)
  867. {
  868.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Invalidate)
  869.     (this,ev);
  870. }
  871.  
  872. /* method: GetDrawingMode */
  873. HIDrawingMode   GetDrawingMode(Environment *ev)
  874. {
  875.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetDrawingMode)
  876.     (this,ev);
  877. }
  878.  
  879. /* method: SetDrawingMode */
  880. void   SetDrawingMode(Environment *ev,
  881.         HIDrawingMode drawingMode)
  882. {
  883.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,SetDrawingMode)
  884.     (this,ev,drawingMode);
  885. }
  886.  
  887. /* method: SetBackgroundPattern */
  888. void   SetBackgroundPattern(Environment *ev,
  889.         PixPatHandle backgroundPattern)
  890. {
  891.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,SetBackgroundPattern)
  892.     (this,ev,backgroundPattern);
  893. }
  894.  
  895. /* method: GetBackgroundPattern */
  896. PixPatHandle   GetBackgroundPattern(Environment *ev)
  897. {
  898.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetBackgroundPattern)
  899.     (this,ev);
  900. }
  901.  
  902. /* method: Cut */
  903. void   Cut(Environment *ev)
  904. {
  905.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Cut)
  906.     (this,ev);
  907. }
  908.  
  909. /* method: Copy */
  910. void   Copy(Environment *ev)
  911. {
  912.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Copy)
  913.     (this,ev);
  914. }
  915.  
  916. /* method: Paste */
  917. void   Paste(Environment *ev)
  918. {
  919.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Paste)
  920.     (this,ev);
  921. }
  922.  
  923. /* method: Clear */
  924. void   Clear(Environment *ev)
  925. {
  926.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Clear)
  927.     (this,ev);
  928. }
  929.  
  930. /* method: GetClipboardSupportFlags */
  931. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  932. {
  933.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,GetClipboardSupportFlags)
  934.     (this,ev);
  935. }
  936.  
  937. /* method: AddStateChangeCallback */
  938. OSStatus   AddStateChangeCallback(Environment *ev,
  939.         HIStateChangeCallbackProcPtr changedStateCallback,
  940.         HIStateChangeCallbackRef* newCallbackRef)
  941. {
  942.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,AddStateChangeCallback)
  943.     (this,ev,changedStateCallback,newCallbackRef);
  944. }
  945.  
  946. /* method: RemoveStateChangeCallback */
  947. OSStatus   RemoveStateChangeCallback(Environment *ev,
  948.         HIStateChangeCallbackRef callbackRefToRemove)
  949. {
  950.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,RemoveStateChangeCallback)
  951.     (this,ev,callbackRefToRemove);
  952. }
  953.  
  954. /* noself procedure: GetHIObjectFromRefLabel */
  955. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  956.         RefLabel* identifier,
  957.         ItemCount requestedObjects,
  958.         ItemCount* totalObjects,
  959.         HIObject** theObjects)
  960. {
  961. return ((somTD_HIEmbeddingPanel_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  962.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  963. }
  964.  
  965. /* noself procedure: GetNewHIObject */
  966. static OSStatus   GetNewHIObject(Environment *ev,
  967.         AESubDesc* objectInitializer,
  968.         HIObject** newObject)
  969. {
  970. return ((somTD_HIEmbeddingPanel_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  971.     (ev,objectInitializer,newObject);
  972. }
  973.  
  974. /* noself procedure: GetNewHIObjectFromResource */
  975. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  976.         ResID objectInitializerResourceID,
  977.         HIObject** newObject)
  978. {
  979. return ((somTD_HIEmbeddingPanel_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  980.     (ev,objectInitializerResourceID,newObject);
  981. }
  982.  
  983. /* method: DrawContent */
  984. void   DrawContent(Environment *ev,
  985.         CGrafPtr whichPort,
  986.         RgnHandle drawRgn)
  987. {
  988.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,DrawContent)
  989.     (this,ev,whichPort,drawRgn);
  990. }
  991.  
  992. /* method: EraseContent */
  993. void   EraseContent(Environment *ev,
  994.         CGrafPtr whichPort,
  995.         RgnHandle regionToErase)
  996. {
  997.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,EraseContent)
  998.     (this,ev,whichPort,regionToErase);
  999. }
  1000.  
  1001. /* method: TranslatePoint */
  1002. void   TranslatePoint(Environment *ev,
  1003.         HICoordinateSystem translateFrom,
  1004.         HICoordinateSystem translateTo,
  1005.         Point* sourcePoint,
  1006.         Point* translatedPoint)
  1007. {
  1008.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,TranslatePoint)
  1009.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  1010. }
  1011.  
  1012. /* method: TranslateRect */
  1013. void   TranslateRect(Environment *ev,
  1014.         HICoordinateSystem translateFrom,
  1015.         HICoordinateSystem translateTo,
  1016.         Rect* sourceRect,
  1017.         Rect* translatedRect)
  1018. {
  1019.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,TranslateRect)
  1020.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  1021. }
  1022.  
  1023. /* method: StateChanged */
  1024. void   StateChanged(Environment *ev,
  1025.         HIStateChangeCodeCreator selectorCreator,
  1026.         HIStateChangeCode changedCode)
  1027. {
  1028.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,StateChanged)
  1029.     (this,ev,selectorCreator,changedCode);
  1030. }
  1031.  
  1032. /* method: SetClipboardSupportFlags */
  1033. void   SetClipboardSupportFlags(Environment *ev,
  1034.         HIClipboardSupportFlags flags)
  1035. {
  1036.    SOM_ResolveD(this,HIEmbeddingPanel,HIObject,SetClipboardSupportFlags)
  1037.     (this,ev,flags);
  1038. }
  1039.  
  1040. /* method: Verify */
  1041. OSStatus   Verify(Environment *ev)
  1042. {
  1043.    return SOM_ResolveD(this,HIEmbeddingPanel,HIObject,Verify)
  1044.     (this,ev);
  1045. }
  1046.  
  1047. /* method: somInit */
  1048. void   somInit()
  1049. {
  1050.    SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somInit)
  1051.     (this);
  1052. }
  1053.  
  1054. /* method: somUninit */
  1055. void   somUninit()
  1056. {
  1057.    SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somUninit)
  1058.     (this);
  1059. }
  1060.  
  1061. /* method: somDuplicateReference */
  1062. SOMObject*   somDuplicateReference()
  1063. {
  1064.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somDuplicateReference)
  1065.     (this);
  1066. }
  1067.  
  1068. /* method: somCompareReference */
  1069. boolean   somCompareReference(SOMObject* anObject)
  1070. {
  1071.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somCompareReference)
  1072.     (this,anObject);
  1073. }
  1074.  
  1075. /* method: somRelease */
  1076. SOMObject*   somRelease()
  1077. {
  1078.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somRelease)
  1079.     (this);
  1080. }
  1081.  
  1082. /* method: somFree */
  1083. void   somFree()
  1084. {
  1085.    SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somFree)
  1086.     (this);
  1087. }
  1088.  
  1089. /* method: somCanDelete */
  1090. boolean   somCanDelete()
  1091. {
  1092.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somCanDelete)
  1093.     (this);
  1094. }
  1095.  
  1096. /* method: somGetClass */
  1097. SOMClass*   somGetClass()
  1098. {
  1099.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somGetClass)
  1100.     (this);
  1101. }
  1102.  
  1103. /* method: somGetClassName */
  1104. corbastring   somGetClassName()
  1105. {
  1106.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somGetClassName)
  1107.     (this);
  1108. }
  1109.  
  1110. /* method: somGetSize */
  1111. long   somGetSize()
  1112. {
  1113.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somGetSize)
  1114.     (this);
  1115. }
  1116.  
  1117. /* method: somIsA */
  1118. boolean   somIsA(SOMClass* aClassObj)
  1119. {
  1120.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somIsA)
  1121.     (this,aClassObj);
  1122. }
  1123.  
  1124. /* method: somRespondsTo */
  1125. boolean   somRespondsTo(somId mId)
  1126. {
  1127.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somRespondsTo)
  1128.     (this,mId);
  1129. }
  1130.  
  1131. /* method: somIsInstanceOf */
  1132. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1133. {
  1134.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somIsInstanceOf)
  1135.     (this,aClassObj);
  1136. }
  1137.  
  1138. /* va_list method: somDispatch */
  1139. /* the va_list invocation form */
  1140. boolean   HIEmbeddingPanel_somDispatch(somToken* retValue,
  1141.         somId methodId,
  1142.         va_list ap)
  1143. {
  1144.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somDispatch)
  1145.     (this,retValue,methodId,ap);
  1146. }
  1147.  
  1148. /* the varargs invocation form */
  1149. boolean   somDispatch(somToken* retValue,
  1150.         somId methodId,
  1151.         ...)
  1152. {
  1153.    va_list ap;
  1154.    va_start(ap, methodId);
  1155.       boolean __somResult = 
  1156.       (boolean) SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somDispatch)
  1157.     (this,retValue,methodId,ap);
  1158.    va_end(ap);
  1159.    return __somResult;
  1160. }
  1161.  
  1162. /* va_list method: somClassDispatch */
  1163. /* the va_list invocation form */
  1164. boolean   HIEmbeddingPanel_somClassDispatch(SOMClass* clsObj,
  1165.         somToken* retValue,
  1166.         somId methodId,
  1167.         va_list ap)
  1168. {
  1169.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somClassDispatch)
  1170.     (this,clsObj,retValue,methodId,ap);
  1171. }
  1172.  
  1173. /* the varargs invocation form */
  1174. boolean   somClassDispatch(SOMClass* clsObj,
  1175.         somToken* retValue,
  1176.         somId methodId,
  1177.         ...)
  1178. {
  1179.    va_list ap;
  1180.    va_start(ap, methodId);
  1181.       boolean __somResult = 
  1182.       (boolean) SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somClassDispatch)
  1183.     (this,clsObj,retValue,methodId,ap);
  1184.    va_end(ap);
  1185.    return __somResult;
  1186. }
  1187.  
  1188. /* method: somCastObj */
  1189. boolean   somCastObj(SOMClass* cls)
  1190. {
  1191.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somCastObj)
  1192.     (this,cls);
  1193. }
  1194.  
  1195. /* method: somResetObj */
  1196. boolean   somResetObj()
  1197. {
  1198.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somResetObj)
  1199.     (this);
  1200. }
  1201.  
  1202. /* method: somPrintSelf */
  1203. SOMObject*   somPrintSelf()
  1204. {
  1205.    return SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somPrintSelf)
  1206.     (this);
  1207. }
  1208.  
  1209. /* method: somDumpSelf */
  1210. void   somDumpSelf(long level)
  1211. {
  1212.    SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somDumpSelf)
  1213.     (this,level);
  1214. }
  1215.  
  1216. /* method: somDumpSelfInt */
  1217. void   somDumpSelfInt(long level)
  1218. {
  1219.    SOM_ResolveD(this,HIEmbeddingPanel,SOMObject,somDumpSelfInt)
  1220.     (this,level);
  1221. }
  1222.  
  1223. };   /* HIEmbeddingPanel */
  1224.  
  1225.  
  1226.  
  1227. #endif       /* SOM_HIEmbeddingPanel_xh */
  1228.  
  1229. #ifndef SOM_HIRootPanel_xh
  1230. #define SOM_HIRootPanel_xh
  1231.  
  1232. class HIRootPanel;
  1233.  
  1234. #define HIRootPanel_MajorVersion 0
  1235. #define HIRootPanel_MinorVersion 0
  1236.  
  1237. /* C++ SOM defs */
  1238. #include <somcls.xh>
  1239. #include <somcm.xh>
  1240.  
  1241. /* C++ parent defs */
  1242. #ifndef SOM_HIEmbeddingPanel_xh
  1243. #include <HIEmbeddingPanels.xh>
  1244. #endif
  1245.  
  1246. #ifndef HIRootPanel_API
  1247. #define HIRootPanel_API
  1248. /*
  1249.  * -- The Class API
  1250.  */
  1251.  
  1252. /*
  1253.  * Start of user-defined types:
  1254.  */
  1255.  
  1256. /*
  1257.  * End of user-defined types.
  1258.  */
  1259.  
  1260. #ifdef OLDIBMSOMAPISUPPORT
  1261. #define HIRootPanelCClassData HIRootPanelClassData
  1262. #define HIRootPanelNewClass(major,minor) somNewVersionedClassReference(HIRootPanel,major,minor)
  1263. #endif
  1264.  
  1265. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1266. #define HIRootPanelMetaClass SOMClass
  1267.  
  1268. #if PRAGMA_ALIGN_SUPPORTED
  1269. #  pragma options align=power
  1270. #endif
  1271.  
  1272. /* The API to the HIRootPanel class object, and the methods it introduces. */
  1273. SOMEXTERN struct HIRootPanelClassDataStructure {
  1274. #ifdef OLDIBMSOMAPISUPPORT
  1275.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  1276. #else
  1277.     long zero;
  1278. #endif
  1279.     somStaticClassInfo *sci;
  1280.     somDToken        instanceDataToken;
  1281.     long reserved [3];
  1282.     somMToken InitRootPanel;
  1283.     somMToken AdjustAccumulatedEraseRgn;
  1284.     somMToken EraseAccumulatedEraseRgn;
  1285. } SOMDLINK HIRootPanelClassData;
  1286.  
  1287. #if PRAGMA_ALIGN_SUPPORTED
  1288. #  pragma options align=reset
  1289. #endif
  1290.  
  1291. #if !defined(HIRootPanel_Class_Source) && !defined(SOM_Module_hiembeddingpanels_Source)
  1292. #if PRAGMA_IMPORT_SUPPORTED
  1293. #pragma import list HIRootPanelClassData
  1294. #endif
  1295. #endif
  1296.  
  1297.  
  1298. /*
  1299.  * -- Typedefs for HIRootPanel Method Procedures
  1300.  */
  1301. SOMEXTERN {
  1302. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_InitRootPanel)(HIRootPanel *somSelf, Environment *ev,
  1303.         RefLabel* identifier,
  1304.         HIWindow* window);
  1305. typedef void   (* SOMLINK somTD_HIRootPanel_AdjustAccumulatedEraseRgn)(HIRootPanel *somSelf, Environment *ev,
  1306.         HIAccumulatorOperation accumulatorOperation,
  1307.         Rect* oldRectangle,
  1308.         Rect* newRectangle);
  1309. typedef void   (* SOMLINK somTD_HIRootPanel_EraseAccumulatedEraseRgn)(HIRootPanel *somSelf, Environment *ev,
  1310.         CGrafPtr targetPort);
  1311.  
  1312. /*
  1313.  * -- Typedefs for Inherited Methods
  1314.  */
  1315. typedef ItemCount   (* SOMLINK somTD_HIRootPanel_GetSubPanelCount)(HIRootPanel *somSelf, Environment *ev);
  1316. typedef HIPanel*   (* SOMLINK somTD_HIRootPanel_GetLastSelectedSubPanel)(HIRootPanel *somSelf, Environment *ev);
  1317. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_InitEmbeddingPanel)(HIRootPanel *somSelf, Environment *ev,
  1318.         RefLabel* identifier,
  1319.         HIWindow* window,
  1320.         Rect* bounds);
  1321. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_AddSubPanel)(HIRootPanel *somSelf, Environment *ev,
  1322.         HIPanel* subPanel,
  1323.         HISubPanelIndex where,
  1324.         HIAdoptionFlags adoptionFlags,
  1325.         HIFrameBindingFlags frameBindingFlags);
  1326. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_RemoveSubPanel)(HIRootPanel *somSelf, Environment *ev,
  1327.         HIPanel* subPanel);
  1328. typedef HIPanel*   (* SOMLINK somTD_HIRootPanel_GetSubPanel)(HIRootPanel *somSelf, Environment *ev,
  1329.         HISubPanelIndex subPanelIndex);
  1330. typedef HIPanel*   (* SOMLINK somTD_HIRootPanel_GetUserInputFocusSubPanel)(HIRootPanel *somSelf, Environment *ev);
  1331. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_SetUserInputFocusSubPanel)(HIRootPanel *somSelf, Environment *ev,
  1332.         HIPanel* subPanel);
  1333. typedef HISubPanelIndex   (* SOMLINK somTD_HIRootPanel_GetSubPanelIndex)(HIRootPanel *somSelf, Environment *ev,
  1334.         HIPanel* subPanel);
  1335. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_GetSubPanelsFromRefLabel)(HIRootPanel *somSelf, Environment *ev,
  1336.         RefLabel* identifier,
  1337.         boolean deep,
  1338.         ItemCount requestedSubPanels,
  1339.         ItemCount* totalSubPanels,
  1340.         HIPanel** thePanels);
  1341. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIRootPanel_GetEmbeddingParent)(HIRootPanel *somSelf, Environment *ev);
  1342. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_InitPanel)(HIRootPanel *somSelf, Environment *ev,
  1343.         RefLabel* identifier,
  1344.         HIWindow* window,
  1345.         Rect* bounds);
  1346. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_RegisterInterestInAppleEvent)(HIRootPanel *somSelf, Environment *ev,
  1347.         AEHandlerTableRef table,
  1348.         AEEventClass eventClass,
  1349.         AEEventID eventID,
  1350.         HIEventRoutingType eventRouting);
  1351. typedef boolean   (* SOMLINK somTD_HIRootPanel_HasValidContent)(HIRootPanel *somSelf, Environment *ev);
  1352. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_GetDeepCollectionItemData)(HIRootPanel *somSelf, Environment *ev,
  1353.         CollectionTag tag,
  1354.         SInt32 id,
  1355.         ByteCount sizeAllowed,
  1356.         ByteCount* sizeReturned,
  1357.         void* itemData);
  1358. typedef HIWindow*   (* SOMLINK somTD_HIRootPanel_GetWindow)(HIRootPanel *somSelf, Environment *ev);
  1359. typedef CGrafPtr   (* SOMLINK somTD_HIRootPanel_GetPort)(HIRootPanel *somSelf, Environment *ev);
  1360. typedef void   (* SOMLINK somTD_HIRootPanel_GetRefLabel)(HIRootPanel *somSelf, Environment *ev,
  1361.         RefLabel* identifier);
  1362. typedef Collection   (* SOMLINK somTD_HIRootPanel_GetCollection)(HIRootPanel *somSelf, Environment *ev);
  1363. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_Init)(HIRootPanel *somSelf, Environment *ev,
  1364.         RefLabel* identifier,
  1365.         Rect* boundingRect);
  1366. typedef void   (* SOMLINK somTD_HIRootPanel_Terminate)(HIRootPanel *somSelf, Environment *ev);
  1367. typedef HIObject*   (* SOMLINK somTD_HIRootPanel_Clone)(HIRootPanel *somSelf, Environment *ev);
  1368. typedef void   (* SOMLINK somTD_HIRootPanel_Release)(HIRootPanel *somSelf, Environment *ev);
  1369. typedef ItemCount   (* SOMLINK somTD_HIRootPanel_GetOwnerCount)(HIRootPanel *somSelf, Environment *ev);
  1370. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_InitFromAERecord)(HIRootPanel *somSelf, Environment *ev,
  1371.         AESubDesc* baseInitializerData,
  1372.         AESubDesc* initializerDataForClass,
  1373.         HIAERecordDataFormat dataFormat);
  1374. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_WriteToAERecord)(HIRootPanel *somSelf, Environment *ev,
  1375.         AERecord* dataForSubclass,
  1376.         AERecord* objectData,
  1377.         HIAERecordDataFormat dataFormat);
  1378. typedef void   (* SOMLINK somTD_HIRootPanel_CalculateOptimalSize)(HIRootPanel *somSelf, Environment *ev,
  1379.         SInt16* optimalWidth,
  1380.         SInt16* optimalHeight);
  1381. typedef void   (* SOMLINK somTD_HIRootPanel_GetBoundingRect)(HIRootPanel *somSelf, Environment *ev,
  1382.         HICoordinateSystem coordinate,
  1383.         Rect* boundingRect);
  1384. typedef void   (* SOMLINK somTD_HIRootPanel_SetBoundingRect)(HIRootPanel *somSelf, Environment *ev,
  1385.         HICoordinateSystem coordinate,
  1386.         Rect* newBoundingRect);
  1387. typedef void   (* SOMLINK somTD_HIRootPanel_SetPosition)(HIRootPanel *somSelf, Environment *ev,
  1388.         HICoordinateSystem coordinate,
  1389.         Point* newPosition);
  1390. typedef void   (* SOMLINK somTD_HIRootPanel_SetSize)(HIRootPanel *somSelf, Environment *ev,
  1391.         SInt16 width,
  1392.         SInt16 height);
  1393. typedef void   (* SOMLINK somTD_HIRootPanel_GetUpdateRect)(HIRootPanel *somSelf, Environment *ev,
  1394.         HICoordinateSystem coordinate,
  1395.         Rect* updateRect);
  1396. typedef void   (* SOMLINK somTD_HIRootPanel_Enable)(HIRootPanel *somSelf, Environment *ev);
  1397. typedef void   (* SOMLINK somTD_HIRootPanel_Disable)(HIRootPanel *somSelf, Environment *ev);
  1398. typedef boolean   (* SOMLINK somTD_HIRootPanel_IsEnabled)(HIRootPanel *somSelf, Environment *ev);
  1399. typedef void   (* SOMLINK somTD_HIRootPanel_Show)(HIRootPanel *somSelf, Environment *ev);
  1400. typedef void   (* SOMLINK somTD_HIRootPanel_Hide)(HIRootPanel *somSelf, Environment *ev);
  1401. typedef boolean   (* SOMLINK somTD_HIRootPanel_IsVisible)(HIRootPanel *somSelf, Environment *ev);
  1402. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_HandleAppleEvent)(HIRootPanel *somSelf, Environment *ev,
  1403.         AEEventClass eventClass,
  1404.         AEEventID eventID,
  1405.         AppleEvent* theEvent,
  1406.         AppleEvent* reply,
  1407.         AEHandlerTableRef handlerTableRef);
  1408. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_HandleActivate)(HIRootPanel *somSelf, Environment *ev,
  1409.         AppleEvent* theEvent,
  1410.         AppleEvent* reply,
  1411.         AEHandlerTableRef handlerTableRef);
  1412. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_HandleDeactivate)(HIRootPanel *somSelf, Environment *ev,
  1413.         AppleEvent* theEvent,
  1414.         AppleEvent* reply,
  1415.         AEHandlerTableRef handlerTableRef);
  1416. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_HandleNavigation)(HIRootPanel *somSelf, Environment *ev,
  1417.         SInt8 key,
  1418.         SInt8 keyCode,
  1419.         EventModifiers modifiers,
  1420.         AppleEvent* theEvent,
  1421.         AppleEvent* reply,
  1422.         AEHandlerTableRef handlerTableRef);
  1423. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_HandleMouseDownInContent)(HIRootPanel *somSelf, Environment *ev,
  1424.         Point* portLocalWhere,
  1425.         EventModifiers modifiers,
  1426.         AppleEvent* theEvent,
  1427.         AppleEvent* reply,
  1428.         AEHandlerTableRef handlerTableRef);
  1429. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_HandleMouseMovedInContent)(HIRootPanel *somSelf, Environment *ev,
  1430.         Point* portLocalWhere,
  1431.         EventModifiers modifiers,
  1432.         AppleEvent* theEvent,
  1433.         AppleEvent* reply,
  1434.         AEHandlerTableRef handlerTableRef);
  1435. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_HandleMouseStoppedMovingInContent)(HIRootPanel *somSelf, Environment *ev,
  1436.         Point* portLocalWhere,
  1437.         EventModifiers modifiers,
  1438.         AppleEvent* theEvent,
  1439.         AppleEvent* reply,
  1440.         AEHandlerTableRef handlerTableRef);
  1441. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_HandleMouseUpInContent)(HIRootPanel *somSelf, Environment *ev,
  1442.         Point* portLocalWhere,
  1443.         EventModifiers modifiers,
  1444.         AppleEvent* theEvent,
  1445.         AppleEvent* reply,
  1446.         AEHandlerTableRef handlerTableRef);
  1447. typedef void   (* SOMLINK somTD_HIRootPanel_TakeUserInputFocus)(HIRootPanel *somSelf, Environment *ev);
  1448. typedef void   (* SOMLINK somTD_HIRootPanel_ReleaseUserInputFocus)(HIRootPanel *somSelf, Environment *ev);
  1449. typedef boolean   (* SOMLINK somTD_HIRootPanel_HasUserInputFocus)(HIRootPanel *somSelf, Environment *ev);
  1450. typedef boolean   (* SOMLINK somTD_HIRootPanel_CanReleaseUserInputFocus)(HIRootPanel *somSelf, Environment *ev);
  1451. typedef void   (* SOMLINK somTD_HIRootPanel_SetUserInputFocusFlags)(HIRootPanel *somSelf, Environment *ev,
  1452.         HIUserInputFocusFlags flags);
  1453. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIRootPanel_GetUserInputFocusFlags)(HIRootPanel *somSelf, Environment *ev);
  1454. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_SetTitle)(HIRootPanel *somSelf, Environment *ev,
  1455.         ConstHIImageRef title,
  1456.         HIAdoptionFlags disposalAdoptionFlags);
  1457. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_GetTitle)(HIRootPanel *somSelf, Environment *ev,
  1458.         HIImageRef* title);
  1459. typedef void   (* SOMLINK somTD_HIRootPanel_Draw)(HIRootPanel *somSelf, Environment *ev,
  1460.         CGrafPtr whichPort,
  1461.         RgnHandle drawRgn);
  1462. typedef void   (* SOMLINK somTD_HIRootPanel_Erase)(HIRootPanel *somSelf, Environment *ev,
  1463.         CGrafPtr whichPort,
  1464.         RgnHandle eraseRgn);
  1465. typedef void   (* SOMLINK somTD_HIRootPanel_Invalidate)(HIRootPanel *somSelf, Environment *ev);
  1466. typedef HIDrawingMode   (* SOMLINK somTD_HIRootPanel_GetDrawingMode)(HIRootPanel *somSelf, Environment *ev);
  1467. typedef void   (* SOMLINK somTD_HIRootPanel_SetDrawingMode)(HIRootPanel *somSelf, Environment *ev,
  1468.         HIDrawingMode drawingMode);
  1469. typedef void   (* SOMLINK somTD_HIRootPanel_SetBackgroundPattern)(HIRootPanel *somSelf, Environment *ev,
  1470.         PixPatHandle backgroundPattern);
  1471. typedef PixPatHandle   (* SOMLINK somTD_HIRootPanel_GetBackgroundPattern)(HIRootPanel *somSelf, Environment *ev);
  1472. typedef void   (* SOMLINK somTD_HIRootPanel_Cut)(HIRootPanel *somSelf, Environment *ev);
  1473. typedef void   (* SOMLINK somTD_HIRootPanel_Copy)(HIRootPanel *somSelf, Environment *ev);
  1474. typedef void   (* SOMLINK somTD_HIRootPanel_Paste)(HIRootPanel *somSelf, Environment *ev);
  1475. typedef void   (* SOMLINK somTD_HIRootPanel_Clear)(HIRootPanel *somSelf, Environment *ev);
  1476. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIRootPanel_GetClipboardSupportFlags)(HIRootPanel *somSelf, Environment *ev);
  1477. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_AddStateChangeCallback)(HIRootPanel *somSelf, Environment *ev,
  1478.         HIStateChangeCallbackProcPtr changedStateCallback,
  1479.         HIStateChangeCallbackRef* newCallbackRef);
  1480. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_RemoveStateChangeCallback)(HIRootPanel *somSelf, Environment *ev,
  1481.         HIStateChangeCallbackRef callbackRefToRemove);
  1482. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_GetHIObjectFromRefLabel)(Environment *ev,
  1483.         RefLabel* identifier,
  1484.         ItemCount requestedObjects,
  1485.         ItemCount* totalObjects,
  1486.         HIObject** theObjects);
  1487. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_GetNewHIObject)(Environment *ev,
  1488.         AESubDesc* objectInitializer,
  1489.         HIObject** newObject);
  1490. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_GetNewHIObjectFromResource)(Environment *ev,
  1491.         ResID objectInitializerResourceID,
  1492.         HIObject** newObject);
  1493. typedef void   (* SOMLINK somTD_HIRootPanel_DrawContent)(HIRootPanel *somSelf, Environment *ev,
  1494.         CGrafPtr whichPort,
  1495.         RgnHandle drawRgn);
  1496. typedef void   (* SOMLINK somTD_HIRootPanel_EraseContent)(HIRootPanel *somSelf, Environment *ev,
  1497.         CGrafPtr whichPort,
  1498.         RgnHandle regionToErase);
  1499. typedef void   (* SOMLINK somTD_HIRootPanel_TranslatePoint)(HIRootPanel *somSelf, Environment *ev,
  1500.         HICoordinateSystem translateFrom,
  1501.         HICoordinateSystem translateTo,
  1502.         Point* sourcePoint,
  1503.         Point* translatedPoint);
  1504. typedef void   (* SOMLINK somTD_HIRootPanel_TranslateRect)(HIRootPanel *somSelf, Environment *ev,
  1505.         HICoordinateSystem translateFrom,
  1506.         HICoordinateSystem translateTo,
  1507.         Rect* sourceRect,
  1508.         Rect* translatedRect);
  1509. typedef void   (* SOMLINK somTD_HIRootPanel_StateChanged)(HIRootPanel *somSelf, Environment *ev,
  1510.         HIStateChangeCodeCreator selectorCreator,
  1511.         HIStateChangeCode changedCode);
  1512. typedef void   (* SOMLINK somTD_HIRootPanel_SetClipboardSupportFlags)(HIRootPanel *somSelf, Environment *ev,
  1513.         HIClipboardSupportFlags flags);
  1514. typedef OSStatus   (* SOMLINK somTD_HIRootPanel_Verify)(HIRootPanel *somSelf, Environment *ev);
  1515. typedef void   (* SOMLINK somTD_HIRootPanel_somInit)(HIRootPanel *somSelf);
  1516. typedef void   (* SOMLINK somTD_HIRootPanel_somUninit)(HIRootPanel *somSelf);
  1517. typedef SOMObject*   (* SOMLINK somTD_HIRootPanel_somDuplicateReference)(HIRootPanel *somSelf);
  1518. typedef boolean   (* SOMLINK somTD_HIRootPanel_somCompareReference)(HIRootPanel *somSelf,
  1519.         SOMObject* anObject);
  1520. typedef SOMObject*   (* SOMLINK somTD_HIRootPanel_somRelease)(HIRootPanel *somSelf);
  1521. typedef void   (* SOMLINK somTD_HIRootPanel_somFree)(HIRootPanel *somSelf);
  1522. typedef boolean   (* SOMLINK somTD_HIRootPanel_somCanDelete)(HIRootPanel *somSelf);
  1523. typedef SOMClass*   (* SOMLINK somTD_HIRootPanel_somGetClass)(HIRootPanel *somSelf);
  1524. typedef corbastring   (* SOMLINK somTD_HIRootPanel_somGetClassName)(HIRootPanel *somSelf);
  1525. typedef long   (* SOMLINK somTD_HIRootPanel_somGetSize)(HIRootPanel *somSelf);
  1526. typedef boolean   (* SOMLINK somTD_HIRootPanel_somIsA)(HIRootPanel *somSelf,
  1527.         SOMClass* aClassObj);
  1528. typedef boolean   (* SOMLINK somTD_HIRootPanel_somRespondsTo)(HIRootPanel *somSelf,
  1529.         somId mId);
  1530. typedef boolean   (* SOMLINK somTD_HIRootPanel_somIsInstanceOf)(HIRootPanel *somSelf,
  1531.         SOMClass* aClassObj);
  1532. typedef boolean   (* SOMLINK somTD_HIRootPanel_somDispatch)(HIRootPanel *somSelf,
  1533.         somToken* retValue,
  1534.         somId methodId,
  1535.         va_list ap);
  1536. typedef boolean   (* SOMLINK somTD_HIRootPanel_somClassDispatch)(HIRootPanel *somSelf,
  1537.         SOMClass* clsObj,
  1538.         somToken* retValue,
  1539.         somId methodId,
  1540.         va_list ap);
  1541. typedef boolean   (* SOMLINK somTD_HIRootPanel_somCastObj)(HIRootPanel *somSelf,
  1542.         SOMClass* cls);
  1543. typedef boolean   (* SOMLINK somTD_HIRootPanel_somResetObj)(HIRootPanel *somSelf);
  1544. typedef SOMObject*   (* SOMLINK somTD_HIRootPanel_somPrintSelf)(HIRootPanel *somSelf);
  1545. typedef void   (* SOMLINK somTD_HIRootPanel_somDumpSelf)(HIRootPanel *somSelf,
  1546.         long level);
  1547. typedef void   (* SOMLINK somTD_HIRootPanel_somDumpSelfInt)(HIRootPanel *somSelf,
  1548.         long level);
  1549. }
  1550.  
  1551. #endif /* HIRootPanel_API */
  1552.  
  1553.  
  1554. /*
  1555.  * -- This emitter treats Method Tokens as Thunks by default.
  1556.  * -- Use the sc modifier "nothunks" to change this default
  1557.  */
  1558. #undef somresolve_
  1559. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1560.  
  1561. /*
  1562.  * -- The C++ Wrapper Class for HIRootPanel
  1563.  */
  1564. class HIRootPanel : public HIEmbeddingPanel
  1565. {
  1566. public:
  1567.  
  1568. // HIRootPanel::new registers use of the class object, and then uses somNew
  1569. // to allocate memory and load the object method table pointer. 
  1570. void *operator new(size_t size)
  1571. {
  1572.     SOM_IgnoreWarning(size);
  1573.     // Allocate memory using the default allocator for HIRootPanel, and
  1574.     // clear mem & set method table pointer, call basic initialization
  1575.     return (void*) somNewObject(HIRootPanel);
  1576. }
  1577.  
  1578. // HIRootPanel::delete uses the default deallocator for the object's class.
  1579. void operator delete(void * obj)
  1580. {
  1581.     if (obj) {
  1582.         SOM_Resolve(obj,SOMObject,somFree)
  1583.            ( (SOMObject*) obj );
  1584.     }
  1585. }
  1586.  
  1587. /* method: InitRootPanel */
  1588. OSStatus   InitRootPanel(Environment *ev,
  1589.         RefLabel* identifier,
  1590.         HIWindow* window)
  1591. {
  1592.    return SOM_ResolveD(this,HIRootPanel,HIRootPanel,InitRootPanel)
  1593.     (this,ev,identifier,window);
  1594. }
  1595.  
  1596. /* method: AdjustAccumulatedEraseRgn */
  1597. void   AdjustAccumulatedEraseRgn(Environment *ev,
  1598.         HIAccumulatorOperation accumulatorOperation,
  1599.         Rect* oldRectangle,
  1600.         Rect* newRectangle)
  1601. {
  1602.    SOM_ResolveD(this,HIRootPanel,HIRootPanel,AdjustAccumulatedEraseRgn)
  1603.     (this,ev,accumulatorOperation,oldRectangle,newRectangle);
  1604. }
  1605.  
  1606. /* method: EraseAccumulatedEraseRgn */
  1607. void   EraseAccumulatedEraseRgn(Environment *ev,
  1608.         CGrafPtr targetPort)
  1609. {
  1610.    SOM_ResolveD(this,HIRootPanel,HIRootPanel,EraseAccumulatedEraseRgn)
  1611.     (this,ev,targetPort);
  1612. }
  1613.  
  1614.  
  1615. /*
  1616.  * -- Inherited methods
  1617.  */
  1618. /* method: GetSubPanelCount */
  1619. ItemCount   GetSubPanelCount(Environment *ev)
  1620. {
  1621.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,GetSubPanelCount)
  1622.     (this,ev);
  1623. }
  1624.  
  1625. /* method: GetLastSelectedSubPanel */
  1626. HIPanel*   GetLastSelectedSubPanel(Environment *ev)
  1627. {
  1628.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,GetLastSelectedSubPanel)
  1629.     (this,ev);
  1630. }
  1631.  
  1632. /* method: InitEmbeddingPanel */
  1633. OSStatus   InitEmbeddingPanel(Environment *ev,
  1634.         RefLabel* identifier,
  1635.         HIWindow* window,
  1636.         Rect* bounds)
  1637. {
  1638.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,InitEmbeddingPanel)
  1639.     (this,ev,identifier,window,bounds);
  1640. }
  1641.  
  1642. /* method: AddSubPanel */
  1643. OSStatus   AddSubPanel(Environment *ev,
  1644.         HIPanel* subPanel,
  1645.         HISubPanelIndex where,
  1646.         HIAdoptionFlags adoptionFlags,
  1647.         HIFrameBindingFlags frameBindingFlags)
  1648. {
  1649.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,AddSubPanel)
  1650.     (this,ev,subPanel,where,adoptionFlags,frameBindingFlags);
  1651. }
  1652.  
  1653. /* method: RemoveSubPanel */
  1654. OSStatus   RemoveSubPanel(Environment *ev,
  1655.         HIPanel* subPanel)
  1656. {
  1657.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,RemoveSubPanel)
  1658.     (this,ev,subPanel);
  1659. }
  1660.  
  1661. /* method: GetSubPanel */
  1662. HIPanel*   GetSubPanel(Environment *ev,
  1663.         HISubPanelIndex subPanelIndex)
  1664. {
  1665.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,GetSubPanel)
  1666.     (this,ev,subPanelIndex);
  1667. }
  1668.  
  1669. /* method: GetUserInputFocusSubPanel */
  1670. HIPanel*   GetUserInputFocusSubPanel(Environment *ev)
  1671. {
  1672.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,GetUserInputFocusSubPanel)
  1673.     (this,ev);
  1674. }
  1675.  
  1676. /* method: SetUserInputFocusSubPanel */
  1677. OSStatus   SetUserInputFocusSubPanel(Environment *ev,
  1678.         HIPanel* subPanel)
  1679. {
  1680.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,SetUserInputFocusSubPanel)
  1681.     (this,ev,subPanel);
  1682. }
  1683.  
  1684. /* method: GetSubPanelIndex */
  1685. HISubPanelIndex   GetSubPanelIndex(Environment *ev,
  1686.         HIPanel* subPanel)
  1687. {
  1688.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,GetSubPanelIndex)
  1689.     (this,ev,subPanel);
  1690. }
  1691.  
  1692. /* method: GetSubPanelsFromRefLabel */
  1693. OSStatus   GetSubPanelsFromRefLabel(Environment *ev,
  1694.         RefLabel* identifier,
  1695.         boolean deep,
  1696.         ItemCount requestedSubPanels,
  1697.         ItemCount* totalSubPanels,
  1698.         HIPanel** thePanels)
  1699. {
  1700.    return SOM_ResolveD(this,HIRootPanel,HIEmbeddingPanel,GetSubPanelsFromRefLabel)
  1701.     (this,ev,identifier,deep,requestedSubPanels,totalSubPanels,thePanels);
  1702. }
  1703.  
  1704. /* method: GetEmbeddingParent */
  1705. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  1706. {
  1707.    return SOM_ResolveD(this,HIRootPanel,HIPanel,GetEmbeddingParent)
  1708.     (this,ev);
  1709. }
  1710.  
  1711. /* method: InitPanel */
  1712. OSStatus   InitPanel(Environment *ev,
  1713.         RefLabel* identifier,
  1714.         HIWindow* window,
  1715.         Rect* bounds)
  1716. {
  1717.    return SOM_ResolveD(this,HIRootPanel,HIPanel,InitPanel)
  1718.     (this,ev,identifier,window,bounds);
  1719. }
  1720.  
  1721. /* method: RegisterInterestInAppleEvent */
  1722. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  1723.         AEHandlerTableRef table,
  1724.         AEEventClass eventClass,
  1725.         AEEventID eventID,
  1726.         HIEventRoutingType eventRouting)
  1727. {
  1728.    return SOM_ResolveD(this,HIRootPanel,HIPanel,RegisterInterestInAppleEvent)
  1729.     (this,ev,table,eventClass,eventID,eventRouting);
  1730. }
  1731.  
  1732. /* method: HasValidContent */
  1733. boolean   HasValidContent(Environment *ev)
  1734. {
  1735.    return SOM_ResolveD(this,HIRootPanel,HIPanel,HasValidContent)
  1736.     (this,ev);
  1737. }
  1738.  
  1739. /* method: GetDeepCollectionItemData */
  1740. OSStatus   GetDeepCollectionItemData(Environment *ev,
  1741.         CollectionTag tag,
  1742.         SInt32 id,
  1743.         ByteCount sizeAllowed,
  1744.         ByteCount* sizeReturned,
  1745.         void* itemData)
  1746. {
  1747.    return SOM_ResolveD(this,HIRootPanel,HIPanel,GetDeepCollectionItemData)
  1748.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  1749. }
  1750.  
  1751. /* method: GetWindow */
  1752. HIWindow*   GetWindow(Environment *ev)
  1753. {
  1754.    return SOM_ResolveD(this,HIRootPanel,HIObject,GetWindow)
  1755.     (this,ev);
  1756. }
  1757.  
  1758. /* method: GetPort */
  1759. CGrafPtr   GetPort(Environment *ev)
  1760. {
  1761.    return SOM_ResolveD(this,HIRootPanel,HIObject,GetPort)
  1762.     (this,ev);
  1763. }
  1764.  
  1765. /* method: GetRefLabel */
  1766. void   GetRefLabel(Environment *ev,
  1767.         RefLabel* identifier)
  1768. {
  1769.    SOM_ResolveD(this,HIRootPanel,HIObject,GetRefLabel)
  1770.     (this,ev,identifier);
  1771. }
  1772.  
  1773. /* method: GetCollection */
  1774. Collection   GetCollection(Environment *ev)
  1775. {
  1776.    return SOM_ResolveD(this,HIRootPanel,HIObject,GetCollection)
  1777.     (this,ev);
  1778. }
  1779.  
  1780. /* method: Init */
  1781. OSStatus   Init(Environment *ev,
  1782.         RefLabel* identifier,
  1783.         Rect* boundingRect)
  1784. {
  1785.    return SOM_ResolveD(this,HIRootPanel,HIObject,Init)
  1786.     (this,ev,identifier,boundingRect);
  1787. }
  1788.  
  1789. /* method: Terminate */
  1790. void   Terminate(Environment *ev)
  1791. {
  1792.    SOM_ResolveD(this,HIRootPanel,HIObject,Terminate)
  1793.     (this,ev);
  1794. }
  1795.  
  1796. /* method: Clone */
  1797. HIObject*   Clone(Environment *ev)
  1798. {
  1799.    return SOM_ResolveD(this,HIRootPanel,HIObject,Clone)
  1800.     (this,ev);
  1801. }
  1802.  
  1803. /* method: Release */
  1804. void   Release(Environment *ev)
  1805. {
  1806.    SOM_ResolveD(this,HIRootPanel,HIObject,Release)
  1807.     (this,ev);
  1808. }
  1809.  
  1810. /* method: GetOwnerCount */
  1811. ItemCount   GetOwnerCount(Environment *ev)
  1812. {
  1813.    return SOM_ResolveD(this,HIRootPanel,HIObject,GetOwnerCount)
  1814.     (this,ev);
  1815. }
  1816.  
  1817. /* method: InitFromAERecord */
  1818. OSStatus   InitFromAERecord(Environment *ev,
  1819.         AESubDesc* baseInitializerData,
  1820.         AESubDesc* initializerDataForClass,
  1821.         HIAERecordDataFormat dataFormat)
  1822. {
  1823.    return SOM_ResolveD(this,HIRootPanel,HIObject,InitFromAERecord)
  1824.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  1825. }
  1826.  
  1827. /* method: WriteToAERecord */
  1828. OSStatus   WriteToAERecord(Environment *ev,
  1829.         AERecord* dataForSubclass,
  1830.         AERecord* objectData,
  1831.         HIAERecordDataFormat dataFormat)
  1832. {
  1833.    return SOM_ResolveD(this,HIRootPanel,HIObject,WriteToAERecord)
  1834.     (this,ev,dataForSubclass,objectData,dataFormat);
  1835. }
  1836.  
  1837. /* method: CalculateOptimalSize */
  1838. void   CalculateOptimalSize(Environment *ev,
  1839.         SInt16* optimalWidth,
  1840.         SInt16* optimalHeight)
  1841. {
  1842.    SOM_ResolveD(this,HIRootPanel,HIObject,CalculateOptimalSize)
  1843.     (this,ev,optimalWidth,optimalHeight);
  1844. }
  1845.  
  1846. /* method: GetBoundingRect */
  1847. void   GetBoundingRect(Environment *ev,
  1848.         HICoordinateSystem coordinate,
  1849.         Rect* boundingRect)
  1850. {
  1851.    SOM_ResolveD(this,HIRootPanel,HIObject,GetBoundingRect)
  1852.     (this,ev,coordinate,boundingRect);
  1853. }
  1854.  
  1855. /* method: SetBoundingRect */
  1856. void   SetBoundingRect(Environment *ev,
  1857.         HICoordinateSystem coordinate,
  1858.         Rect* newBoundingRect)
  1859. {
  1860.    SOM_ResolveD(this,HIRootPanel,HIObject,SetBoundingRect)
  1861.     (this,ev,coordinate,newBoundingRect);
  1862. }
  1863.  
  1864. /* method: SetPosition */
  1865. void   SetPosition(Environment *ev,
  1866.         HICoordinateSystem coordinate,
  1867.         Point* newPosition)
  1868. {
  1869.    SOM_ResolveD(this,HIRootPanel,HIObject,SetPosition)
  1870.     (this,ev,coordinate,newPosition);
  1871. }
  1872.  
  1873. /* method: SetSize */
  1874. void   SetSize(Environment *ev,
  1875.         SInt16 width,
  1876.         SInt16 height)
  1877. {
  1878.    SOM_ResolveD(this,HIRootPanel,HIObject,SetSize)
  1879.     (this,ev,width,height);
  1880. }
  1881.  
  1882. /* method: GetUpdateRect */
  1883. void   GetUpdateRect(Environment *ev,
  1884.         HICoordinateSystem coordinate,
  1885.         Rect* updateRect)
  1886. {
  1887.    SOM_ResolveD(this,HIRootPanel,HIObject,GetUpdateRect)
  1888.     (this,ev,coordinate,updateRect);
  1889. }
  1890.  
  1891. /* method: Enable */
  1892. void   Enable(Environment *ev)
  1893. {
  1894.    SOM_ResolveD(this,HIRootPanel,HIObject,Enable)
  1895.     (this,ev);
  1896. }
  1897.  
  1898. /* method: Disable */
  1899. void   Disable(Environment *ev)
  1900. {
  1901.    SOM_ResolveD(this,HIRootPanel,HIObject,Disable)
  1902.     (this,ev);
  1903. }
  1904.  
  1905. /* method: IsEnabled */
  1906. boolean   IsEnabled(Environment *ev)
  1907. {
  1908.    return SOM_ResolveD(this,HIRootPanel,HIObject,IsEnabled)
  1909.     (this,ev);
  1910. }
  1911.  
  1912. /* method: Show */
  1913. void   Show(Environment *ev)
  1914. {
  1915.    SOM_ResolveD(this,HIRootPanel,HIObject,Show)
  1916.     (this,ev);
  1917. }
  1918.  
  1919. /* method: Hide */
  1920. void   Hide(Environment *ev)
  1921. {
  1922.    SOM_ResolveD(this,HIRootPanel,HIObject,Hide)
  1923.     (this,ev);
  1924. }
  1925.  
  1926. /* method: IsVisible */
  1927. boolean   IsVisible(Environment *ev)
  1928. {
  1929.    return SOM_ResolveD(this,HIRootPanel,HIObject,IsVisible)
  1930.     (this,ev);
  1931. }
  1932.  
  1933. /* method: HandleAppleEvent */
  1934. OSStatus   HandleAppleEvent(Environment *ev,
  1935.         AEEventClass eventClass,
  1936.         AEEventID eventID,
  1937.         AppleEvent* theEvent,
  1938.         AppleEvent* reply,
  1939.         AEHandlerTableRef handlerTableRef)
  1940. {
  1941.    return SOM_ResolveD(this,HIRootPanel,HIObject,HandleAppleEvent)
  1942.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  1943. }
  1944.  
  1945. /* method: HandleActivate */
  1946. OSStatus   HandleActivate(Environment *ev,
  1947.         AppleEvent* theEvent,
  1948.         AppleEvent* reply,
  1949.         AEHandlerTableRef handlerTableRef)
  1950. {
  1951.    return SOM_ResolveD(this,HIRootPanel,HIObject,HandleActivate)
  1952.     (this,ev,theEvent,reply,handlerTableRef);
  1953. }
  1954.  
  1955. /* method: HandleDeactivate */
  1956. OSStatus   HandleDeactivate(Environment *ev,
  1957.         AppleEvent* theEvent,
  1958.         AppleEvent* reply,
  1959.         AEHandlerTableRef handlerTableRef)
  1960. {
  1961.    return SOM_ResolveD(this,HIRootPanel,HIObject,HandleDeactivate)
  1962.     (this,ev,theEvent,reply,handlerTableRef);
  1963. }
  1964.  
  1965. /* method: HandleNavigation */
  1966. OSStatus   HandleNavigation(Environment *ev,
  1967.         SInt8 key,
  1968.         SInt8 keyCode,
  1969.         EventModifiers modifiers,
  1970.         AppleEvent* theEvent,
  1971.         AppleEvent* reply,
  1972.         AEHandlerTableRef handlerTableRef)
  1973. {
  1974.    return SOM_ResolveD(this,HIRootPanel,HIObject,HandleNavigation)
  1975.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  1976. }
  1977.  
  1978. /* method: HandleMouseDownInContent */
  1979. OSStatus   HandleMouseDownInContent(Environment *ev,
  1980.         Point* portLocalWhere,
  1981.         EventModifiers modifiers,
  1982.         AppleEvent* theEvent,
  1983.         AppleEvent* reply,
  1984.         AEHandlerTableRef handlerTableRef)
  1985. {
  1986.    return SOM_ResolveD(this,HIRootPanel,HIObject,HandleMouseDownInContent)
  1987.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  1988. }
  1989.  
  1990. /* method: HandleMouseMovedInContent */
  1991. OSStatus   HandleMouseMovedInContent(Environment *ev,
  1992.         Point* portLocalWhere,
  1993.         EventModifiers modifiers,
  1994.         AppleEvent* theEvent,
  1995.         AppleEvent* reply,
  1996.         AEHandlerTableRef handlerTableRef)
  1997. {
  1998.    return SOM_ResolveD(this,HIRootPanel,HIObject,HandleMouseMovedInContent)
  1999.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2000. }
  2001.  
  2002. /* method: HandleMouseStoppedMovingInContent */
  2003. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  2004.         Point* portLocalWhere,
  2005.         EventModifiers modifiers,
  2006.         AppleEvent* theEvent,
  2007.         AppleEvent* reply,
  2008.         AEHandlerTableRef handlerTableRef)
  2009. {
  2010.    return SOM_ResolveD(this,HIRootPanel,HIObject,HandleMouseStoppedMovingInContent)
  2011.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2012. }
  2013.  
  2014. /* method: HandleMouseUpInContent */
  2015. OSStatus   HandleMouseUpInContent(Environment *ev,
  2016.         Point* portLocalWhere,
  2017.         EventModifiers modifiers,
  2018.         AppleEvent* theEvent,
  2019.         AppleEvent* reply,
  2020.         AEHandlerTableRef handlerTableRef)
  2021. {
  2022.    return SOM_ResolveD(this,HIRootPanel,HIObject,HandleMouseUpInContent)
  2023.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2024. }
  2025.  
  2026. /* method: TakeUserInputFocus */
  2027. void   TakeUserInputFocus(Environment *ev)
  2028. {
  2029.    SOM_ResolveD(this,HIRootPanel,HIObject,TakeUserInputFocus)
  2030.     (this,ev);
  2031. }
  2032.  
  2033. /* method: ReleaseUserInputFocus */
  2034. void   ReleaseUserInputFocus(Environment *ev)
  2035. {
  2036.    SOM_ResolveD(this,HIRootPanel,HIObject,ReleaseUserInputFocus)
  2037.     (this,ev);
  2038. }
  2039.  
  2040. /* method: HasUserInputFocus */
  2041. boolean   HasUserInputFocus(Environment *ev)
  2042. {
  2043.    return SOM_ResolveD(this,HIRootPanel,HIObject,HasUserInputFocus)
  2044.     (this,ev);
  2045. }
  2046.  
  2047. /* method: CanReleaseUserInputFocus */
  2048. boolean   CanReleaseUserInputFocus(Environment *ev)
  2049. {
  2050.    return SOM_ResolveD(this,HIRootPanel,HIObject,CanReleaseUserInputFocus)
  2051.     (this,ev);
  2052. }
  2053.  
  2054. /* method: SetUserInputFocusFlags */
  2055. void   SetUserInputFocusFlags(Environment *ev,
  2056.         HIUserInputFocusFlags flags)
  2057. {
  2058.    SOM_ResolveD(this,HIRootPanel,HIObject,SetUserInputFocusFlags)
  2059.     (this,ev,flags);
  2060. }
  2061.  
  2062. /* method: GetUserInputFocusFlags */
  2063. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  2064. {
  2065.    return SOM_ResolveD(this,HIRootPanel,HIObject,GetUserInputFocusFlags)
  2066.     (this,ev);
  2067. }
  2068.  
  2069. /* method: SetTitle */
  2070. OSStatus   SetTitle(Environment *ev,
  2071.         ConstHIImageRef title,
  2072.         HIAdoptionFlags disposalAdoptionFlags)
  2073. {
  2074.    return SOM_ResolveD(this,HIRootPanel,HIObject,SetTitle)
  2075.     (this,ev,title,disposalAdoptionFlags);
  2076. }
  2077.  
  2078. /* method: GetTitle */
  2079. OSStatus   GetTitle(Environment *ev,
  2080.         HIImageRef* title)
  2081. {
  2082.    return SOM_ResolveD(this,HIRootPanel,HIObject,GetTitle)
  2083.     (this,ev,title);
  2084. }
  2085.  
  2086. /* method: Draw */
  2087. void   Draw(Environment *ev,
  2088.         CGrafPtr whichPort,
  2089.         RgnHandle drawRgn)
  2090. {
  2091.    SOM_ResolveD(this,HIRootPanel,HIObject,Draw)
  2092.     (this,ev,whichPort,drawRgn);
  2093. }
  2094.  
  2095. /* method: Erase */
  2096. void   Erase(Environment *ev,
  2097.         CGrafPtr whichPort,
  2098.         RgnHandle eraseRgn)
  2099. {
  2100.    SOM_ResolveD(this,HIRootPanel,HIObject,Erase)
  2101.     (this,ev,whichPort,eraseRgn);
  2102. }
  2103.  
  2104. /* method: Invalidate */
  2105. void   Invalidate(Environment *ev)
  2106. {
  2107.    SOM_ResolveD(this,HIRootPanel,HIObject,Invalidate)
  2108.     (this,ev);
  2109. }
  2110.  
  2111. /* method: GetDrawingMode */
  2112. HIDrawingMode   GetDrawingMode(Environment *ev)
  2113. {
  2114.    return SOM_ResolveD(this,HIRootPanel,HIObject,GetDrawingMode)
  2115.     (this,ev);
  2116. }
  2117.  
  2118. /* method: SetDrawingMode */
  2119. void   SetDrawingMode(Environment *ev,
  2120.         HIDrawingMode drawingMode)
  2121. {
  2122.    SOM_ResolveD(this,HIRootPanel,HIObject,SetDrawingMode)
  2123.     (this,ev,drawingMode);
  2124. }
  2125.  
  2126. /* method: SetBackgroundPattern */
  2127. void   SetBackgroundPattern(Environment *ev,
  2128.         PixPatHandle backgroundPattern)
  2129. {
  2130.    SOM_ResolveD(this,HIRootPanel,HIObject,SetBackgroundPattern)
  2131.     (this,ev,backgroundPattern);
  2132. }
  2133.  
  2134. /* method: GetBackgroundPattern */
  2135. PixPatHandle   GetBackgroundPattern(Environment *ev)
  2136. {
  2137.    return SOM_ResolveD(this,HIRootPanel,HIObject,GetBackgroundPattern)
  2138.     (this,ev);
  2139. }
  2140.  
  2141. /* method: Cut */
  2142. void   Cut(Environment *ev)
  2143. {
  2144.    SOM_ResolveD(this,HIRootPanel,HIObject,Cut)
  2145.     (this,ev);
  2146. }
  2147.  
  2148. /* method: Copy */
  2149. void   Copy(Environment *ev)
  2150. {
  2151.    SOM_ResolveD(this,HIRootPanel,HIObject,Copy)
  2152.     (this,ev);
  2153. }
  2154.  
  2155. /* method: Paste */
  2156. void   Paste(Environment *ev)
  2157. {
  2158.    SOM_ResolveD(this,HIRootPanel,HIObject,Paste)
  2159.     (this,ev);
  2160. }
  2161.  
  2162. /* method: Clear */
  2163. void   Clear(Environment *ev)
  2164. {
  2165.    SOM_ResolveD(this,HIRootPanel,HIObject,Clear)
  2166.     (this,ev);
  2167. }
  2168.  
  2169. /* method: GetClipboardSupportFlags */
  2170. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  2171. {
  2172.    return SOM_ResolveD(this,HIRootPanel,HIObject,GetClipboardSupportFlags)
  2173.     (this,ev);
  2174. }
  2175.  
  2176. /* method: AddStateChangeCallback */
  2177. OSStatus   AddStateChangeCallback(Environment *ev,
  2178.         HIStateChangeCallbackProcPtr changedStateCallback,
  2179.         HIStateChangeCallbackRef* newCallbackRef)
  2180. {
  2181.    return SOM_ResolveD(this,HIRootPanel,HIObject,AddStateChangeCallback)
  2182.     (this,ev,changedStateCallback,newCallbackRef);
  2183. }
  2184.  
  2185. /* method: RemoveStateChangeCallback */
  2186. OSStatus   RemoveStateChangeCallback(Environment *ev,
  2187.         HIStateChangeCallbackRef callbackRefToRemove)
  2188. {
  2189.    return SOM_ResolveD(this,HIRootPanel,HIObject,RemoveStateChangeCallback)
  2190.     (this,ev,callbackRefToRemove);
  2191. }
  2192.  
  2193. /* noself procedure: GetHIObjectFromRefLabel */
  2194. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  2195.         RefLabel* identifier,
  2196.         ItemCount requestedObjects,
  2197.         ItemCount* totalObjects,
  2198.         HIObject** theObjects)
  2199. {
  2200. return ((somTD_HIRootPanel_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  2201.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  2202. }
  2203.  
  2204. /* noself procedure: GetNewHIObject */
  2205. static OSStatus   GetNewHIObject(Environment *ev,
  2206.         AESubDesc* objectInitializer,
  2207.         HIObject** newObject)
  2208. {
  2209. return ((somTD_HIRootPanel_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  2210.     (ev,objectInitializer,newObject);
  2211. }
  2212.  
  2213. /* noself procedure: GetNewHIObjectFromResource */
  2214. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  2215.         ResID objectInitializerResourceID,
  2216.         HIObject** newObject)
  2217. {
  2218. return ((somTD_HIRootPanel_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  2219.     (ev,objectInitializerResourceID,newObject);
  2220. }
  2221.  
  2222. /* method: DrawContent */
  2223. void   DrawContent(Environment *ev,
  2224.         CGrafPtr whichPort,
  2225.         RgnHandle drawRgn)
  2226. {
  2227.    SOM_ResolveD(this,HIRootPanel,HIObject,DrawContent)
  2228.     (this,ev,whichPort,drawRgn);
  2229. }
  2230.  
  2231. /* method: EraseContent */
  2232. void   EraseContent(Environment *ev,
  2233.         CGrafPtr whichPort,
  2234.         RgnHandle regionToErase)
  2235. {
  2236.    SOM_ResolveD(this,HIRootPanel,HIObject,EraseContent)
  2237.     (this,ev,whichPort,regionToErase);
  2238. }
  2239.  
  2240. /* method: TranslatePoint */
  2241. void   TranslatePoint(Environment *ev,
  2242.         HICoordinateSystem translateFrom,
  2243.         HICoordinateSystem translateTo,
  2244.         Point* sourcePoint,
  2245.         Point* translatedPoint)
  2246. {
  2247.    SOM_ResolveD(this,HIRootPanel,HIObject,TranslatePoint)
  2248.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  2249. }
  2250.  
  2251. /* method: TranslateRect */
  2252. void   TranslateRect(Environment *ev,
  2253.         HICoordinateSystem translateFrom,
  2254.         HICoordinateSystem translateTo,
  2255.         Rect* sourceRect,
  2256.         Rect* translatedRect)
  2257. {
  2258.    SOM_ResolveD(this,HIRootPanel,HIObject,TranslateRect)
  2259.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  2260. }
  2261.  
  2262. /* method: StateChanged */
  2263. void   StateChanged(Environment *ev,
  2264.         HIStateChangeCodeCreator selectorCreator,
  2265.         HIStateChangeCode changedCode)
  2266. {
  2267.    SOM_ResolveD(this,HIRootPanel,HIObject,StateChanged)
  2268.     (this,ev,selectorCreator,changedCode);
  2269. }
  2270.  
  2271. /* method: SetClipboardSupportFlags */
  2272. void   SetClipboardSupportFlags(Environment *ev,
  2273.         HIClipboardSupportFlags flags)
  2274. {
  2275.    SOM_ResolveD(this,HIRootPanel,HIObject,SetClipboardSupportFlags)
  2276.     (this,ev,flags);
  2277. }
  2278.  
  2279. /* method: Verify */
  2280. OSStatus   Verify(Environment *ev)
  2281. {
  2282.    return SOM_ResolveD(this,HIRootPanel,HIObject,Verify)
  2283.     (this,ev);
  2284. }
  2285.  
  2286. /* method: somInit */
  2287. void   somInit()
  2288. {
  2289.    SOM_ResolveD(this,HIRootPanel,SOMObject,somInit)
  2290.     (this);
  2291. }
  2292.  
  2293. /* method: somUninit */
  2294. void   somUninit()
  2295. {
  2296.    SOM_ResolveD(this,HIRootPanel,SOMObject,somUninit)
  2297.     (this);
  2298. }
  2299.  
  2300. /* method: somDuplicateReference */
  2301. SOMObject*   somDuplicateReference()
  2302. {
  2303.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somDuplicateReference)
  2304.     (this);
  2305. }
  2306.  
  2307. /* method: somCompareReference */
  2308. boolean   somCompareReference(SOMObject* anObject)
  2309. {
  2310.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somCompareReference)
  2311.     (this,anObject);
  2312. }
  2313.  
  2314. /* method: somRelease */
  2315. SOMObject*   somRelease()
  2316. {
  2317.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somRelease)
  2318.     (this);
  2319. }
  2320.  
  2321. /* method: somFree */
  2322. void   somFree()
  2323. {
  2324.    SOM_ResolveD(this,HIRootPanel,SOMObject,somFree)
  2325.     (this);
  2326. }
  2327.  
  2328. /* method: somCanDelete */
  2329. boolean   somCanDelete()
  2330. {
  2331.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somCanDelete)
  2332.     (this);
  2333. }
  2334.  
  2335. /* method: somGetClass */
  2336. SOMClass*   somGetClass()
  2337. {
  2338.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somGetClass)
  2339.     (this);
  2340. }
  2341.  
  2342. /* method: somGetClassName */
  2343. corbastring   somGetClassName()
  2344. {
  2345.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somGetClassName)
  2346.     (this);
  2347. }
  2348.  
  2349. /* method: somGetSize */
  2350. long   somGetSize()
  2351. {
  2352.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somGetSize)
  2353.     (this);
  2354. }
  2355.  
  2356. /* method: somIsA */
  2357. boolean   somIsA(SOMClass* aClassObj)
  2358. {
  2359.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somIsA)
  2360.     (this,aClassObj);
  2361. }
  2362.  
  2363. /* method: somRespondsTo */
  2364. boolean   somRespondsTo(somId mId)
  2365. {
  2366.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somRespondsTo)
  2367.     (this,mId);
  2368. }
  2369.  
  2370. /* method: somIsInstanceOf */
  2371. boolean   somIsInstanceOf(SOMClass* aClassObj)
  2372. {
  2373.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somIsInstanceOf)
  2374.     (this,aClassObj);
  2375. }
  2376.  
  2377. /* va_list method: somDispatch */
  2378. /* the va_list invocation form */
  2379. boolean   HIRootPanel_somDispatch(somToken* retValue,
  2380.         somId methodId,
  2381.         va_list ap)
  2382. {
  2383.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somDispatch)
  2384.     (this,retValue,methodId,ap);
  2385. }
  2386.  
  2387. /* the varargs invocation form */
  2388. boolean   somDispatch(somToken* retValue,
  2389.         somId methodId,
  2390.         ...)
  2391. {
  2392.    va_list ap;
  2393.    va_start(ap, methodId);
  2394.       boolean __somResult = 
  2395.       (boolean) SOM_ResolveD(this,HIRootPanel,SOMObject,somDispatch)
  2396.     (this,retValue,methodId,ap);
  2397.    va_end(ap);
  2398.    return __somResult;
  2399. }
  2400.  
  2401. /* va_list method: somClassDispatch */
  2402. /* the va_list invocation form */
  2403. boolean   HIRootPanel_somClassDispatch(SOMClass* clsObj,
  2404.         somToken* retValue,
  2405.         somId methodId,
  2406.         va_list ap)
  2407. {
  2408.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somClassDispatch)
  2409.     (this,clsObj,retValue,methodId,ap);
  2410. }
  2411.  
  2412. /* the varargs invocation form */
  2413. boolean   somClassDispatch(SOMClass* clsObj,
  2414.         somToken* retValue,
  2415.         somId methodId,
  2416.         ...)
  2417. {
  2418.    va_list ap;
  2419.    va_start(ap, methodId);
  2420.       boolean __somResult = 
  2421.       (boolean) SOM_ResolveD(this,HIRootPanel,SOMObject,somClassDispatch)
  2422.     (this,clsObj,retValue,methodId,ap);
  2423.    va_end(ap);
  2424.    return __somResult;
  2425. }
  2426.  
  2427. /* method: somCastObj */
  2428. boolean   somCastObj(SOMClass* cls)
  2429. {
  2430.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somCastObj)
  2431.     (this,cls);
  2432. }
  2433.  
  2434. /* method: somResetObj */
  2435. boolean   somResetObj()
  2436. {
  2437.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somResetObj)
  2438.     (this);
  2439. }
  2440.  
  2441. /* method: somPrintSelf */
  2442. SOMObject*   somPrintSelf()
  2443. {
  2444.    return SOM_ResolveD(this,HIRootPanel,SOMObject,somPrintSelf)
  2445.     (this);
  2446. }
  2447.  
  2448. /* method: somDumpSelf */
  2449. void   somDumpSelf(long level)
  2450. {
  2451.    SOM_ResolveD(this,HIRootPanel,SOMObject,somDumpSelf)
  2452.     (this,level);
  2453. }
  2454.  
  2455. /* method: somDumpSelfInt */
  2456. void   somDumpSelfInt(long level)
  2457. {
  2458.    SOM_ResolveD(this,HIRootPanel,SOMObject,somDumpSelfInt)
  2459.     (this,level);
  2460. }
  2461.  
  2462. };   /* HIRootPanel */
  2463.  
  2464.  
  2465.  
  2466. #endif       /* SOM_HIRootPanel_xh */
  2467.